12 #ifndef CD_CdrIterator_H
13 #define CD_CdrIterator_H
17 #include <CD_NamespaceHeader.H>
91 virtual RefCountedPtr<T>&
97 virtual RefCountedPtr<CdrSpecies>&
132 #include <CD_NamespaceFooter.H>
Implementation of CdrIterator.H.
Declaration of a class that holds a set of CdrSolvers (to cut down on typing).
Iterator class for CdrLayout. This allows iteration through solvers (or subsets of solvers).
Definition: CD_CdrIterator.H:27
virtual void reset()
Reset iterator.
Definition: CD_CdrIteratorImplem.H:65
Vector< RefCountedPtr< T > > m_solvers
Cdr solvers.
Definition: CD_CdrIterator.H:124
bool m_isDefined
Defined or not.
Definition: CD_CdrIterator.H:119
Vector< RefCountedPtr< CdrSpecies > > m_species
Cdr species.
Definition: CD_CdrIterator.H:129
virtual bool ok() const
Ok or not.
Definition: CD_CdrIteratorImplem.H:76
virtual int index() const
Get current solver number (i.e. index in CdrLayouts solvers).
Definition: CD_CdrIteratorImplem.H:54
virtual RefCountedPtr< CdrSpecies > & getSpecies()
Return the current species.
Definition: CD_CdrIteratorImplem.H:144
virtual RefCountedPtr< T > & operator()()
Return the current solver.
Definition: CD_CdrIteratorImplem.H:132
virtual void operator++()
Increment. This is different for different iteration modes.
Definition: CD_CdrIteratorImplem.H:87
CdrIterator()=delete
Disallowed weak construction. Always use the full constructor.
SpeciesIteration
Enum class for iterating through subsets of species.
Definition: CD_CdrIterator.H:33
int m_numSolvers
Number of solvers.
Definition: CD_CdrIterator.H:114
SpeciesIteration m_mode
Which species to iterate over.
Definition: CD_CdrIterator.H:104
virtual ~CdrIterator()
Destructor (does nothing).
Definition: CD_CdrIteratorImplem.H:36
virtual int getNumberOfSolvers()
Get number of solvers.
Definition: CD_CdrIteratorImplem.H:43
Class for holding a set of CdrSolvers.
Definition: CD_CdrLayout.H:37