OpenFPM  5.2.0
Project that contain the implementation of distributed structures
NNc_array< dim, size, false > Class Template Reference

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 ()
 
void init_sym_local ()
 
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
 

Detailed Description

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

Definition at line 202 of file NNc_array.hpp.

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 273 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 284 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 241 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 224 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 301 of file NNc_array.hpp.

Field Documentation

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


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