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, 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 More...
 
long int operator[] (size_t i) const
 return the element i More...
 
void init_full ()
 
void init_sym ()
 
const long int * getPointer () const
 return the pointer to the array More...
 
NNc_array< dim, size, false > & operator= (const NNc_array< dim, size, false > &nnc)
 Copy the NNc_array. More...
 
void swap (NNc_array< dim, size, false > &nnc)
 swap the NNc_array More...
 

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

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.

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.

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.

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.

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 282 of file NNc_array.hpp.

Field Documentation

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.


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