OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
NNc_array< dim, size, false > Class Template Reference

Detailed Description

template<unsigned int dim, unsigned int size>
class NNc_array< dim, size, false >

Definition at line 190 of file NNc_array.hpp.

Public Member Functions

void set_size (const size_t(&sz)[dim])
 set the size of the cell grid
 
long int operator[] (size_t i) const
 return the element i
 
void init_full ()
 
void init_sym ()
 
const long int * getPointer () const
 return the pointer to the array
 
NNc_array< dim, size, false > & operator= (const NNc_array< dim, size, false > &nnc)
 Copy the NNc_array.
 
void swap (NNc_array< dim, size, false > &nnc)
 swap the NNc_array
 

Private Attributes

grid_sm< dim, void > gs
 
grid_sm< dim, void > gs_base
 Information about the grid in the reduced space.
 
size_t sub_off
 
size_t sym_mid
 
bool full_or_sym
 

Member Function Documentation

◆ getPointer()

template<unsigned int dim, unsigned int size>
const long int * NNc_array< dim, size, false >::getPointer ( ) const
inline

return the pointer to the array

Returns
the pointer

Definition at line 256 of file NNc_array.hpp.

◆ init_full()

template<unsigned int dim, unsigned int size>
void NNc_array< dim, size, false >::init_full ( )
inline

Definition at line 241 of file NNc_array.hpp.

◆ init_sym()

template<unsigned int dim, unsigned int size>
void NNc_array< dim, size, false >::init_sym ( )
inline

Definition at line 246 of file NNc_array.hpp.

◆ operator=()

template<unsigned int dim, unsigned int size>
NNc_array< dim, size, false > & NNc_array< dim, size, false >::operator= ( const NNc_array< dim, size, false > &  nnc)
inline

Copy the NNc_array.

Parameters
nncNNc_array to copy

Definition at line 267 of file NNc_array.hpp.

◆ operator[]()

template<unsigned int dim, unsigned int size>
long int NNc_array< dim, size, false >::operator[] ( size_t  i) const
inline

return the element i

Returns
element i

Definition at line 229 of file NNc_array.hpp.

◆ set_size()

template<unsigned int dim, unsigned int size>
void NNc_array< dim, size, false >::set_size ( const size_t(&)  sz[dim])
inline

set the size of the cell grid

Parameters
sz[dim]size of the cell grid in each dimension

Definition at line 212 of file NNc_array.hpp.

◆ swap()

template<unsigned int dim, unsigned int size>
void NNc_array< dim, size, false >::swap ( NNc_array< dim, size, false > &  nnc)
inline

swap the NNc_array

Parameters
nncNNc_array to copy

Definition at line 284 of file NNc_array.hpp.

Field Documentation

◆ full_or_sym

template<unsigned int dim, unsigned int size>
bool NNc_array< dim, size, false >::full_or_sym
private

Definition at line 203 of file NNc_array.hpp.

◆ gs

template<unsigned int dim, unsigned int size>
grid_sm<dim,void> NNc_array< dim, size, false >::gs
private

NNc_array is a grid in general 3^{dim}, this object contain the information about this grid

Definition at line 194 of file NNc_array.hpp.

◆ gs_base

template<unsigned int dim, unsigned int size>
grid_sm<dim,void> NNc_array< dim, size, false >::gs_base
private

Information about the grid in the reduced space.

Definition at line 197 of file NNc_array.hpp.

◆ sub_off

template<unsigned int dim, unsigned int size>
size_t NNc_array< dim, size, false >::sub_off
private

Definition at line 200 of file NNc_array.hpp.

◆ sym_mid

template<unsigned int dim, unsigned int size>
size_t NNc_array< dim, size, false >::sym_mid
private

Definition at line 201 of file NNc_array.hpp.


The documentation for this class was generated from the following file: