OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
NNc_array< dim, size, thr > Class Template Reference

Detailed Description

template<unsigned int dim, unsigned int size, bool thr = as_array_nnc<dim>::type::value>
class NNc_array< dim, size, thr >

Definition at line 32 of file NNc_array.hpp.

Public Member Functions

void set_size (const size_t(&sz)[dim])
 Set the size in each. More...
 
const long int & operator[] (size_t i) const
 return the element i More...
 
long int & operator[] (size_t i)
 return the element i More...
 
void init_full ()
 Initialize the NNc array with full neighborhood cells indexes. More...
 
void init_sym ()
 Initialize the NNc array with symmetric neighborhood cells indexes. More...
 
const long int * getPointer () const
 return the pointer to the array More...
 
NNc_array< dim, size, thr > & operator= (const NNc_array< dim, size, thr > &nnc)
 Copy the NNc_array. More...
 
void swap (NNc_array< dim, size, thr > &nnc)
 swap NNc_array More...
 

Private Attributes

long int NNc_arr [size]
 NNc_array.
 
grid_sm< dim, void > gs
 size of the cell array on each dimension
 

Member Function Documentation

template<unsigned int dim, unsigned int size, bool thr = as_array_nnc<dim>::type::value>
const long int* NNc_array< dim, size, thr >::getPointer ( ) const
inline

return the pointer to the array

Returns
the pointer

Definition at line 146 of file NNc_array.hpp.

template<unsigned int dim, unsigned int size, bool thr = as_array_nnc<dim>::type::value>
void NNc_array< dim, size, thr >::init_full ( )
inline

Initialize the NNc array with full neighborhood cells indexes.

Definition at line 76 of file NNc_array.hpp.

template<unsigned int dim, unsigned int size, bool thr = as_array_nnc<dim>::type::value>
void NNc_array< dim, size, thr >::init_sym ( )
inline

Initialize the NNc array with symmetric neighborhood cells indexes.

Definition at line 104 of file NNc_array.hpp.

template<unsigned int dim, unsigned int size, bool thr = as_array_nnc<dim>::type::value>
NNc_array<dim,size,thr>& NNc_array< dim, size, thr >::operator= ( const NNc_array< dim, size, thr > &  nnc)
inline

Copy the NNc_array.

Parameters
nncNNc_array to copy

Definition at line 156 of file NNc_array.hpp.

template<unsigned int dim, unsigned int size, bool thr = as_array_nnc<dim>::type::value>
const long int& NNc_array< dim, size, thr >::operator[] ( size_t  i) const
inline

return the element i

Returns
element i

Definition at line 57 of file NNc_array.hpp.

template<unsigned int dim, unsigned int size, bool thr = as_array_nnc<dim>::type::value>
long int& NNc_array< dim, size, thr >::operator[] ( size_t  i)
inline

return the element i

Returns
element i

Definition at line 67 of file NNc_array.hpp.

template<unsigned int dim, unsigned int size, bool thr = as_array_nnc<dim>::type::value>
void NNc_array< dim, size, thr >::set_size ( const size_t(&)  sz[dim])
inline

Set the size in each.

Parameters
szsize og the cell grid in each dimensions

Definition at line 47 of file NNc_array.hpp.

template<unsigned int dim, unsigned int size, bool thr = as_array_nnc<dim>::type::value>
void NNc_array< dim, size, thr >::swap ( NNc_array< dim, size, thr > &  nnc)
inline

swap NNc_array

Parameters
nncNNc_array to copy

Definition at line 169 of file NNc_array.hpp.


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