11 #ifndef _MOMENTITERATOR_H_ 12 #define _MOMENTITERATOR_H_ 16 #include "NamespaceHeader.H" 36 virtual void reset() = 0;
45 virtual bool ok() = 0;
47 virtual int size()
const = 0;
55 template <
int D,
int P>
91 return (*m_indicies)[m_current];
100 bool retval = m_current < m_indicies->size();
106 return m_indicies->size();
120 #include "NamespaceFooter.H"
virtual const IndexTM< int, D > & operator()() const =0
one dimensional dynamic array
Definition: Vector.H:53
class to enable template containment
Definition: MomentIterator.H:20
static const Vector< IndexTM< int, Dim > > & getMonomialPowers()
monomial powers
Definition: IndexedMoments.H:134
virtual void reset()
Definition: MomentIterator.H:74
virtual int size() const =0
virtual void operator++()=0
const Vector< IndexTM< int, D > > * m_indicies
points to the (static) powers that live in IndexedMoments
Definition: MomentIterator.H:112
virtual ~MomentIterator()
Definition: MomentIterator.H:69
virtual ~BaseMomentIterator()
Definition: MomentIterator.H:31
iterates through the indices of a IndexedMoment
Definition: MomentIterator.H:56
int m_current
Definition: MomentIterator.H:115
BaseMomentIterator()
Definition: MomentIterator.H:26
virtual bool ok()
Definition: MomentIterator.H:98
virtual int size() const
Definition: MomentIterator.H:104
MomentIterator()
Definition: MomentIterator.H:62