12 #ifndef CD_RtIterator_H
13 #define CD_RtIterator_H
17 #include <CD_NamespaceHeader.H>
74 virtual RefCountedPtr<T>&
80 virtual RefCountedPtr<RtSpecies>&
105 #include <CD_NamespaceFooter.H>
Implementation of RtIterator.H.
Declaration of a class that holds a set of RtSolvers.
Iterator class for RtLayout.
Definition: CD_RtIterator.H:24
Vector< RefCountedPtr< T > > m_solvers
Ion solvers.
Definition: CD_RtIterator.H:97
virtual RefCountedPtr< T > & operator()()
Get the solver pointed to by the iterator.
Definition: CD_RtIteratorImplem.H:77
virtual int index() const
Get current solver number/index.
Definition: CD_RtIteratorImplem.H:49
int m_num
Number of solvers.
Definition: CD_RtIterator.H:92
virtual ~RtIterator()
Destructor (does nothing)
Definition: CD_RtIteratorImplem.H:35
virtual void operator++()
Incrementation operator. Cycles to next solver.
Definition: CD_RtIteratorImplem.H:70
int m_isolver
Solver currently pointed to.
Definition: CD_RtIterator.H:87
virtual void reset()
Reset iterator to first solver.
Definition: CD_RtIteratorImplem.H:56
virtual int getNumberOfSolvers()
Get number of solvers.
Definition: CD_RtIteratorImplem.H:42
virtual bool ok()
Check if we can cycle further through the solvers.
Definition: CD_RtIteratorImplem.H:63
Vector< RefCountedPtr< RtSpecies > > m_species
Ions.
Definition: CD_RtIterator.H:102
RtIterator()=delete
Empty constructor.
virtual RefCountedPtr< RtSpecies > & getSpecies()
Get current species pointed to by the iterator.
Definition: CD_RtIteratorImplem.H:84
Class for holding a set of RtSolvers. T must derive from RtSolver.
Definition: CD_RtLayout.H:27