OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Public Attributes | Private Member Functions | List of all members
GenArrayParticle< PLayout, T, N > Class Template Reference

#include <GenArrayParticle.h>

Inheritance diagram for GenArrayParticle< PLayout, T, N >:
Inheritance graph
[legend]
Collaboration diagram for GenArrayParticle< PLayout, T, N >:
Collaboration graph
[legend]

Public Member Functions

 GenArrayParticle (PLayout *L)
 
- Public Member Functions inherited from IpplParticleBase< PLayout >
 IpplParticleBase ()
 
 IpplParticleBase (PLayout *layout)
 
 ~IpplParticleBase ()
 
void initialize (PLayout *)
 
size_t getTotalNum () const
 
size_t getLocalNum () const
 
size_t getDestroyNum () const
 
size_t getGhostNum () const
 
void setTotalNum (size_t n)
 
void setLocalNum (size_t n)
 
PLayoutgetLayout ()
 
const PLayoutgetLayout () const
 
ParticleBConds< Position_t, PLayout::Dimension > & getBConds ()
 
void setBConds (const ParticleBConds< Position_t, PLayout::Dimension > &bc)
 
bool singleInitNode () const
 
bool getUpdateFlag (UpdateFlags f) const
 
void setUpdateFlag (UpdateFlags f, bool val)
 
void addAttribute (ParticleAttribBase &pa)
 
ParticleAttribBasegetAttribute (attrib_container_t::size_type N)
 
attrib_container_t::size_type numAttributes () const
 
attrib_iterator begin ()
 
attrib_iterator end ()
 
void resetID ()
 
virtual void update ()
 
virtual void update (const ParticleAttrib< char > &canSwap)
 
void createWithID (unsigned id)
 
void create (size_t)
 
void globalCreate (size_t np)
 
void destroy (size_t, size_t, bool=false)
 
size_t putMessage (Message &, size_t, size_t)
 
size_t putMessage (Message &, const std::vector< size_t > &)
 
size_t putMessage (Message &, size_t)
 
FormatgetFormat ()
 
size_t writeMsgBuffer (MsgBuffer *&, const std::vector< size_t > &)
 
template<class O >
size_t writeMsgBufferWithOffsets (MsgBuffer *&, const std::vector< size_t > &, const std::vector< O > &)
 
size_t readMsgBuffer (MsgBuffer *)
 
size_t readGhostMsgBuffer (MsgBuffer *, int)
 
size_t getMessage (Message &)
 
size_t getSingleMessage (Message &)
 
size_t getMessageAndCreate (Message &)
 
void performDestroy (bool updateLocalNum=false)
 
void sort (SortList_t &)
 
size_t ghostPutMessage (Message &, size_t, size_t)
 
size_t ghostPutMessage (Message &, const std::vector< size_t > &)
 
size_t ghostGetMessage (Message &, int)
 
size_t ghostGetSingleMessage (Message &, int)
 
void ghostDestroy (size_t, size_t)
 
void printDebug (Inform &)
 
- Public Member Functions inherited from DataSource
 DataSource ()
 
virtual ~DataSource ()
 
bool connected (DataConnect *=0) const
 
DataSourceObjectfindDataSourceObject (DataConnect *) const
 
DataConnectconnect (const char *, DataConnect *=0, int=DataSource::DEFAULT)
 
bool connect (DataSourceObject *)
 
bool disconnect (DataConnect *=0)
 
bool updateConnection (DataConnect *=0)
 
void interact (DataConnect *=0)
 
void interact (const char *, DataConnect *=0)
 
- Public Member Functions inherited from AbstractParticle< PLayout::Position_t, PLayout::Dimension >
 AbstractParticle ()
 
virtual ~AbstractParticle ()
 
virtual void setBConds (const ParticleBConds< Position_t, Dim > &bc)=0
 

Public Attributes

ParticleAttrib< T > data [N]
 
- Public Attributes inherited from IpplParticleBase< PLayout >
ParticlePos_t R
 
ParticleIndex_t ID
 
- Public Attributes inherited from AbstractParticle< PLayout::Position_t, PLayout::Dimension >
ParticlePos_tR_p
 
ParticleIndex_tID_p
 

Private Member Functions

 GenArrayParticle ()
 

Additional Inherited Members

- Public Types inherited from IpplParticleBase< PLayout >
enum  { Dim = PLayout::Dimension }
 
typedef PLayout Layout_t
 
typedef PLayout::Position_t Position_t
 
typedef PLayout::Index_t Index_t
 
typedef PLayout::ParticlePos_t ParticlePos_t
 
typedef PLayout::ParticleIndex_t ParticleIndex_t
 
typedef PLayout::pair_iterator pair_iterator
 
typedef PLayout::pair_t pair_t
 
typedef PLayout::UpdateFlags UpdateFlags
 
typedef std::vector< ParticleAttribBase * > attrib_container_t
 
typedef attrib_container_t::iterator attrib_iterator
 
typedef ParticleAttribBase::SortList_t SortList_t
 
- Public Types inherited from DataSource
enum  DsMode { INPUT , OUTPUT , BOTH , DEFAULT }
 
typedef std::vector< DataSourceObject * > container_t
 
- Public Types inherited from AbstractParticle< PLayout::Position_t, PLayout::Dimension >
typedef ParticleLayout< PLayout::Position_t, Dim >::SingleParticlePos_t SingleParticlePos_t
 
typedef ParticleLayout< PLayout::Position_t, Dim >::Index_t Index_t
 
typedef ParticleAttrib< SingleParticlePos_tParticlePos_t
 
typedef ParticleAttrib< Index_tParticleIndex_t
 
typedef ParticleLayout< PLayout::Position_t, Dim >::UpdateFlags UpdateFlags
 
typedef ParticleLayout< PLayout::Position_t, Dim >::Position_t Position_t
 
typedef ParticleLayout< PLayout::Position_t, DimLayout_t
 
- Protected Member Functions inherited from IpplParticleBase< PLayout >
virtual DataSourceObjectcreateDataSourceObject (const char *nm, DataConnect *dc, int tm)
 
- Protected Attributes inherited from IpplParticleBase< PLayout >
std::vector< std::pair< size_t, size_t > > DestroyList
 

Detailed Description

template<class PLayout, class T, unsigned N>
class GenArrayParticle< PLayout, T, N >

Definition at line 25 of file GenArrayParticle.h.

Constructor & Destructor Documentation

◆ GenArrayParticle() [1/2]

template<class PLayout , class T , unsigned N>
GenArrayParticle< PLayout, T, N >::GenArrayParticle ( PLayout L)
inline

Definition at line 32 of file GenArrayParticle.h.

References IpplParticleBase< PLayout >::addAttribute().

Here is the call graph for this function:

◆ GenArrayParticle() [2/2]

template<class PLayout , class T , unsigned N>
GenArrayParticle< PLayout, T, N >::GenArrayParticle ( )
private

Member Data Documentation

◆ data

template<class PLayout , class T , unsigned N>
ParticleAttrib<T> GenArrayParticle< PLayout, T, N >::data[N]

Definition at line 29 of file GenArrayParticle.h.


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