OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
ParticleAttribElem< T, Dim > Class Template Reference

#include <ParticleAttribElem.h>

Inheritance diagram for ParticleAttribElem< T, Dim >:
Inheritance graph
[legend]
Collaboration diagram for ParticleAttribElem< T, Dim >:
Collaboration graph
[legend]

Public Types

enum  { IsExpr = 0 }
 
typedef AppTypeTraits< T >
::Element_t 
Element_t
 
typedef
ParticleAttribElemIterator< T,
Dim
iterator
 
typedef iterator PETE_Expr_t
 
- Public Types inherited from PETE_Expr< ParticleAttribElem< T, Dim > >
typedef ParticleAttribElem< T,
Dim
Wrapped
 

Public Member Functions

PETE_Expr_t MakeExpression () const
 
 ParticleAttribElem (ParticleAttrib< T > &pa, const vec< unsigned, Dim > &i)
 
 ParticleAttribElem (const ParticleAttribElem< T, Dim > &pae)
 
iterator begin () const
 
iterator end () const
 
size_t size () const
 
Element_toperator[] (size_t)
 
void create (size_t)
 
void destroy (size_t M, size_t I, bool optDestroy=true)
 
void destroy (const std::vector< std::pair< size_t, size_t > > &dlist, bool optDestroy=true)
 
template<unsigned SDim>
SubParticleAttrib
< ParticleAttribElem< T, Dim >
, Element_t, SDim > 
operator[] (const SIndex< SDim > &s) const
 
template<class T1 >
const ParticleAttribElem< T,
Dim > & 
operator= (const PETE_Expr< T1 > &rhs)
 
const ParticleAttribElem< T,
Dim > & 
operator= (const ParticleAttribElem< T, Dim > &rhs)
 
const ParticleAttribElem< T,
Dim > & 
operator= (Element_t rhs)
 
- Public Member Functions inherited from PETE_Expr< ParticleAttribElem< T, Dim > >
ParticleAttribElem< T, Dim > & PETE_unwrap ()
 
const ParticleAttribElem< T,
Dim > & 
PETE_unwrap () const
 

Private Attributes

ParticleAttrib< T > & Attrib
 
vec< unsigned, Dimindx
 

Friends

class ParticleAttribElemIterator< T, Dim >
 

Detailed Description

template<class T, unsigned Dim>
class ParticleAttribElem< T, Dim >

Definition at line 67 of file ParticleAttribElem.h.

Member Typedef Documentation

template<class T, unsigned Dim>
typedef AppTypeTraits<T>::Element_t ParticleAttribElem< T, Dim >::Element_t

Definition at line 73 of file ParticleAttribElem.h.

template<class T, unsigned Dim>
typedef ParticleAttribElemIterator<T,Dim> ParticleAttribElem< T, Dim >::iterator

Definition at line 74 of file ParticleAttribElem.h.

template<class T, unsigned Dim>
typedef iterator ParticleAttribElem< T, Dim >::PETE_Expr_t

Definition at line 80 of file ParticleAttribElem.h.

Member Enumeration Documentation

template<class T, unsigned Dim>
anonymous enum
Enumerator
IsExpr 

Definition at line 79 of file ParticleAttribElem.h.

Constructor & Destructor Documentation

template<class T, unsigned Dim>
ParticleAttribElem< T, Dim >::ParticleAttribElem ( ParticleAttrib< T > &  pa,
const vec< unsigned, Dim > &  i 
)
inline

Definition at line 86 of file ParticleAttribElem.h.

template<class T, unsigned Dim>
ParticleAttribElem< T, Dim >::ParticleAttribElem ( const ParticleAttribElem< T, Dim > &  pae)
inline

Definition at line 90 of file ParticleAttribElem.h.

Member Function Documentation

template<class T, unsigned Dim>
iterator ParticleAttribElem< T, Dim >::begin ( ) const
inline

Definition at line 94 of file ParticleAttribElem.h.

Referenced by assign(), and ParticleAttribElem< T, Dim >::MakeExpression().

template<class T , unsigned Dim>
void ParticleAttribElem< T, Dim >::create ( size_t  M)
inline

Definition at line 252 of file ParticleAttribElem.h.

template<class T , unsigned Dim>
void ParticleAttribElem< T, Dim >::destroy ( size_t  M,
size_t  I,
bool  optDestroy = true 
)
inline

Definition at line 258 of file ParticleAttribElem.h.

template<class T , unsigned Dim>
void ParticleAttribElem< T, Dim >::destroy ( const std::vector< std::pair< size_t, size_t > > &  dlist,
bool  optDestroy = true 
)
inline

Definition at line 265 of file ParticleAttribElem.h.

template<class T, unsigned Dim>
iterator ParticleAttribElem< T, Dim >::end ( ) const
inline

Definition at line 97 of file ParticleAttribElem.h.

References ParticleAttribElem< T, Dim >::size().

Referenced by assign().

Here is the call graph for this function:

template<class T, unsigned Dim>
PETE_Expr_t ParticleAttribElem< T, Dim >::MakeExpression ( ) const
inline

Definition at line 81 of file ParticleAttribElem.h.

References ParticleAttribElem< T, Dim >::begin().

Here is the call graph for this function:

template<class T, unsigned Dim>
template<class T1 >
const ParticleAttribElem<T,Dim>& ParticleAttribElem< T, Dim >::operator= ( const PETE_Expr< T1 > &  rhs)
inline

Definition at line 151 of file ParticleAttribElem.h.

References assign().

Here is the call graph for this function:

template<class T, unsigned Dim>
const ParticleAttribElem<T,Dim>& ParticleAttribElem< T, Dim >::operator= ( const ParticleAttribElem< T, Dim > &  rhs)
inline

Definition at line 171 of file ParticleAttribElem.h.

References assign(), endl(), ERRORMSG, and ParticleAttribElem< T, Dim >::size().

Here is the call graph for this function:

template<class T, unsigned Dim>
const ParticleAttribElem<T,Dim>& ParticleAttribElem< T, Dim >::operator= ( Element_t  rhs)
inline

Definition at line 182 of file ParticleAttribElem.h.

References assign().

Here is the call graph for this function:

template<class T , unsigned Dim>
ParticleAttribElem< T, Dim >::Element_t & ParticleAttribElem< T, Dim >::operator[] ( size_t  n)
inline

Definition at line 246 of file ParticleAttribElem.h.

References get_PETE_Element().

Here is the call graph for this function:

template<class T, unsigned Dim>
template<unsigned SDim>
SubParticleAttrib<ParticleAttribElem<T,Dim>, Element_t, SDim> ParticleAttribElem< T, Dim >::operator[] ( const SIndex< SDim > &  s) const
inline

Definition at line 132 of file ParticleAttribElem.h.

template<class T, unsigned Dim>
size_t ParticleAttribElem< T, Dim >::size ( void  ) const
inline

Friends And Related Function Documentation

template<class T, unsigned Dim>
friend class ParticleAttribElemIterator< T, Dim >
friend

Definition at line 69 of file ParticleAttribElem.h.

Member Data Documentation

template<class T, unsigned Dim>
ParticleAttrib<T>& ParticleAttribElem< T, Dim >::Attrib
private

Definition at line 189 of file ParticleAttribElem.h.

Referenced by ParticleAttribElem< T, Dim >::size().

template<class T, unsigned Dim>
vec<unsigned,Dim> ParticleAttribElem< T, Dim >::indx
private

Definition at line 192 of file ParticleAttribElem.h.


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