OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
se_class3_vector< Np, dim, T, Decomposition, vector > Class Template Reference

This class check for inconsistency access. More...

Detailed Description

template<unsigned int Np, unsigned int dim, typename T, typename Decomposition, typename vector>
class se_class3_vector< Np, dim, T, Decomposition, vector >

This class check for inconsistency access.

Template Parameters
Npnumber of properties

Definition at line 427 of file se_class3_vector.hpp.

#include <se_class3_vector.hpp>

Public Member Functions

 se_class3_vector (Decomposition &dec, vector &vd)
 
template<unsigned int prp>
size_t isGhostSync ()
 return the status of the ghosts More...
 
void Initialize ()
 Initialize the se_class2 structure. More...
 
template<unsigned int... prp>
void ghost_get_pre (size_t opt)
 
template<unsigned int... prp>
void ghost_get_post (size_t opt)
 
template<unsigned int... prp>
void ghost_put ()
 
void getIterator () const
 
void map_pre ()
 
void map_post ()
 Operation to do after map. More...
 
template<unsigned int prp>
void read (const vector &vd, size_t p) const
 
template<unsigned int prp>
void write (vector &vd, size_t p)
 
se_class3_vector< Np, dim, T,
Decomposition, vector > & 
operator= (const se_class3_vector< Np, dim, T, Decomposition, vector > &se3)
 Copy operator.
 
template<unsigned int prp>
void setHaloOutSync ()
 
template<unsigned int prp>
void setGhostOutSync ()
 
void getNN ()
 

Private Member Functions

bool isLocalHalo (const Point< dim, T > &p)
 It check if the particle is in the internal ghost area. More...
 
size_t getParticleType (const Point< dim, T > &p, const size_t &id, vector &vd)
 Given the position it return the particle type. More...
 
template<unsigned int... prp>
void create_NNP (const size_t(&gg)[sizeof...(prp)+1])
 Fill non_NP with the properties that are not synchronized. More...
 
std::string getPrpName (size_t i) const
 Get property name. More...
 

Private Attributes

int sync [2][Np]
 status of the properties
 
Decompositiondec
 Domain decomposition object.
 
vector & vd
 Reference to the distributed object.
 
openfpm::vector< size_t > non_NP
 temporal buffer
 
size_t l_wrt
 last write
 

Static Private Attributes

static const size_t Np_real = Np+SE3_STATUS
 number of real properties + POSITION
 

Constructor & Destructor Documentation

template<unsigned int Np, unsigned int dim, typename T, typename Decomposition, typename vector>
se_class3_vector< Np, dim, T, Decomposition, vector >::se_class3_vector ( Decomposition dec,
vector &  vd 
)
inline

Constructor all properties are uninitialized

Parameters
decdecomposition
vdvector we are cheking with SE_CLASS3 checks

Definition at line 564 of file se_class3_vector.hpp.

Member Function Documentation

template<unsigned int Np, unsigned int dim, typename T, typename Decomposition, typename vector>
template<unsigned int... prp>
void se_class3_vector< Np, dim, T, Decomposition, vector >::create_NNP ( const size_t(&)  gg[sizeof...(prp)+1])
inlineprivate

Fill non_NP with the properties that are not synchronized.

Parameters
ggvector of properties synchronized

Definition at line 519 of file se_class3_vector.hpp.

template<unsigned int Np, unsigned int dim, typename T, typename Decomposition, typename vector>
size_t se_class3_vector< Np, dim, T, Decomposition, vector >::getParticleType ( const Point< dim, T > &  p,
const size_t &  id,
vector &  vd 
)
inlineprivate

Given the position it return the particle type.

Parameters
pposition of the particle
idof the particle (element id in the vector position)
vdreference to the vector
Returns
the particle type

Definition at line 483 of file se_class3_vector.hpp.

template<unsigned int Np, unsigned int dim, typename T, typename Decomposition, typename vector>
std::string se_class3_vector< Np, dim, T, Decomposition, vector >::getPrpName ( size_t  i) const
inlineprivate

Get property name.

Parameters
iproperty
Returns
the property name

Definition at line 548 of file se_class3_vector.hpp.

template<unsigned int Np, unsigned int dim, typename T, typename Decomposition, typename vector>
void se_class3_vector< Np, dim, T, Decomposition, vector >::Initialize ( )
inline

Initialize the se_class2 structure.

Definition at line 582 of file se_class3_vector.hpp.

template<unsigned int Np, unsigned int dim, typename T, typename Decomposition, typename vector>
template<unsigned int prp>
size_t se_class3_vector< Np, dim, T, Decomposition, vector >::isGhostSync ( )
inline

return the status of the ghosts

Returns
the status of the ghosts

Definition at line 574 of file se_class3_vector.hpp.

template<unsigned int Np, unsigned int dim, typename T, typename Decomposition, typename vector>
bool se_class3_vector< Np, dim, T, Decomposition, vector >::isLocalHalo ( const Point< dim, T > &  p)
inlineprivate

It check if the particle is in the internal ghost area.

Parameters
pparticle to check
Returns
true if the particle is in that area

Definition at line 454 of file se_class3_vector.hpp.

template<unsigned int Np, unsigned int dim, typename T, typename Decomposition, typename vector>
void se_class3_vector< Np, dim, T, Decomposition, vector >::map_post ( )
inline

Operation to do after map.

Definition at line 797 of file se_class3_vector.hpp.


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