OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
NNType< dim, T, CellListImpl, PartIt, type, local_index > Struct Template Reference

Get the neighborhood iterator based on type. More...

Detailed Description

template<unsigned int dim, typename T, typename CellListImpl, typename PartIt, int type, typename local_index>
struct NNType< dim, T, CellListImpl, PartIt, type, local_index >

Get the neighborhood iterator based on type.

Template Parameters
dimdimensionality
Ttype of space
CellListImplCell-list implementation
typeof neighborhood
PartItParticle iterator

Definition at line 32 of file VerletListFast.hpp.

#include <VerletListFast.hpp>

Static Public Member Functions

static auto get (const PartIt &it, const openfpm::vector< Point< dim, T >> &v, Point< dim, T > &xp, size_t p, CellListImpl &cl, T r_cut) -> decltype(cl.template getNNIterator< NO_CHECK >(0))
 Get the neighborhood. More...
 
static void add (local_index p, openfpm::vector< local_index > &pc)
 Add particle in the list of the domain particles. More...
 

Member Function Documentation

template<unsigned int dim, typename T, typename CellListImpl, typename PartIt, int type, typename local_index>
static void NNType< dim, T, CellListImpl, PartIt, type, local_index >::add ( local_index  p,
openfpm::vector< local_index > &  pc 
)
inlinestatic

Add particle in the list of the domain particles.

Parameters
pparticle id
pcdomain particle sequence

Definition at line 61 of file VerletListFast.hpp.

template<unsigned int dim, typename T, typename CellListImpl, typename PartIt, int type, typename local_index>
static auto NNType< dim, T, CellListImpl, PartIt, type, local_index >::get ( const PartIt &  it,
const openfpm::vector< Point< dim, T >> &  v,
Point< dim, T > &  xp,
size_t  p,
CellListImpl &  cl,
r_cut 
) -> decltype(cl.template getNNIterator<NO_CHECK>(0))
inlinestatic

Get the neighborhood.

Parameters
vparticle positions
xpPosition of the particle p
pid of the particle p
clCell-list type implementation
r_cutCutoff radius
Returns
the NN iterator

Definition at line 45 of file VerletListFast.hpp.


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