36template<
class PA,
class T,
unsigned Dim>
49template<
class PA,
class T,
unsigned Dim>
65template<
class PA,
class T,
unsigned Dim>
71 PA &p =
const_cast<PA &
>(A);
72 return iterator(p, MyDomain.begin_iv(), 0, MyDomain);
75template<
class PA,
class T,
unsigned Dim>
81 PA &p =
const_cast<PA &
>(A);
82 return iterator(p, MyDomain.end_iv(), MyDomain.size(), MyDomain);
89template<
class PA,
class T,
unsigned Dim>
95 int points = MyDomain.size();
96 int currpoints = A.size();
99 if (points < currpoints)
100 A.destroy((currpoints - points), points);
101 else if (points > currpoints)
102 A.create(points - currpoints);
112template<
class PA,
class T,
unsigned Dim>
118 PInsist(A.size() == MyDomain.size(),
119 "SubParticleAttrib::write must have an attrib with enough elements");
124 for ( ; lfi != MyDomain.end_iv(); ++lfi) {
127 for ( ; lsi != (*lfi)->end(); ++lsi)
128 o << *lsi + MyDomain.getOffset() <<
" ==> " << A[i++] <<
std::endl;
void assign(const BareField< T, Dim > &a, RHS b, OP op, ExprTag< true >)
Inform & endl(Inform &inf)
std::string::iterator iterator
container_t::const_iterator const_iterator_iv
LSIndex< Dim >::const_iterator const_iterator_indx
SubParticleAttrib< PA, T, Dim > & operator=(const SubParticleAttrib< PA, T, Dim > &)
void write(std::ostream &) const