12 #ifndef CD_RtIteratorImplem_H
13 #define CD_RtIteratorImplem_H
17 #include <CD_NamespaceHeader.H>
25 CH_TIME(
"RtIterator::RtIterator");
29 m_num = m_solvers.size();
37 CH_TIME(
"RtIterator::~RtIterator");
65 return (m_isolver < m_num);
79 CH_assert(m_isolver < m_num);
80 return m_solvers[m_isolver];
83 RefCountedPtr<RtSpecies>&
86 CH_assert(m_isolver < m_num);
87 return m_species[m_isolver];
90 #include <CD_NamespaceFooter.H>
Iterator class for RtLayout.
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
virtual ~RtIterator()
Destructor (does nothing)
Definition: CD_RtIteratorImplem.H:35
virtual void operator++()
Incrementation operator. Cycles to next solver.
Definition: CD_RtIteratorImplem.H:70
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
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
virtual Vector< RefCountedPtr< T > > & getSolvers()
Get solvers.
Definition: CD_RtLayoutImplem.H:397
virtual Vector< RefCountedPtr< RtSpecies > > & getSpecies()
Get species.
Definition: CD_RtLayoutImplem.H:404