11 #ifndef PARTICLE_ATTRIB_ELEM_H
12 #define PARTICLE_ATTRIB_ELEM_H
55 return elem(indx[0], indx[1]);
60 return elem(indx[0], indx[1], indx[2]);
66 template<
class T,
unsigned Dim>
119 void destroy(
size_t M,
size_t I,
bool optDestroy=
true);
123 void destroy(
const std::vector< std::pair<size_t,size_t> >& dlist,
124 bool optDestroy=
true);
130 template<
unsigned SDim>
152 ERRORMSG(
"Attempting to copy particle attributes with unequal sizes.");
175 template <
class T,
unsigned Dim>
177 :
public PETE_Expr< ParticleAttribElemIterator<T,Dim> > {
221 template<
class T,
unsigned Dim>
228 template<
class T,
unsigned Dim>
234 template<
class T,
unsigned Dim>
238 Attrib.destroy(M, I, optDestroy);
241 template<
class T,
unsigned Dim>
245 Attrib.destroy(d, optDestroy);
void assign(const BareField< T, Dim > &a, RHS b, OP op, ExprTag< true >)
AppTypeTraits< T >::Element_t & get_PETE_Element(T &elem, const vec< unsigned, 1U > &indx)
Inform & endl(Inform &inf)
ParticleAttribElemIterator(ParticleAttribElem< T, Dim > &pae, int p)
ParticleAttribElemIterator()
ParticleAttribElemIterator< T, Dim > PETE_Expr_t
ParticleAttribElemIterator(const ParticleAttribElemIterator< T, Dim > &i)
bool operator!=(const ParticleAttribElemIterator< T, Dim > &a) const
ParticleAttribElemIterator< T, Dim > & rewind()
PETE_Expr_t MakeExpression() const
ParticleAttribElemIterator< T, Dim > & operator++()
PETE_Return_t & operator*()
AppTypeTraits< T >::Element_t PETE_Return_t
const ParticleAttribElem< T, Dim > & getParticleAttribElem() const
ParticleAttribElem< T, Dim > * PAE
bool operator==(const ParticleAttribElemIterator< T, Dim > &a) const
void destroy(size_t M, size_t I, bool optDestroy=true)
const ParticleAttribElem< T, Dim > & operator=(const PETE_Expr< T1 > &rhs)
AppTypeTraits< T >::Element_t Element_t
const ParticleAttribElem< T, Dim > & operator=(const ParticleAttribElem< T, Dim > &rhs)
const ParticleAttribElem< T, Dim > & operator=(Element_t rhs)
PETE_Expr_t MakeExpression() const
ParticleAttrib< T > & Attrib
ParticleAttribElem(const ParticleAttribElem< T, Dim > &pae)
SubParticleAttrib< ParticleAttribElem< T, Dim >, Element_t, SDim > operator[](const SIndex< SDim > &s) const
ParticleAttribElem(ParticleAttrib< T > &pa, const vec< unsigned, Dim > &i)
ParticleAttribElemIterator< T, Dim > iterator
vec< unsigned, Dim > indx
Element_t & operator[](size_t)