chombo-discharge
|
Iterator class for RtLayout. More...
#include <CD_RtIterator.H>
Public Member Functions | |
RtIterator ()=delete | |
Empty constructor. | |
RtIterator (RtLayout< T > &a_layout) | |
Full constructor. More... | |
virtual | ~RtIterator () |
Destructor (does nothing) | |
virtual int | getNumberOfSolvers () |
Get number of solvers. | |
virtual int | index () const |
Get current solver number/index. | |
virtual void | reset () |
Reset iterator to first solver. | |
virtual bool | ok () |
Check if we can cycle further through the solvers. | |
virtual void | operator++ () |
Incrementation operator. Cycles to next solver. | |
virtual RefCountedPtr< T > & | operator() () |
Get the solver pointed to by the iterator. | |
virtual RefCountedPtr< RtSpecies > & | getSpecies () |
Get current species pointed to by the iterator. | |
Protected Attributes | |
int | m_isolver |
Solver currently pointed to. | |
int | m_num |
Number of solvers. | |
Vector< RefCountedPtr< T > > | m_solvers |
Ion solvers. | |
Vector< RefCountedPtr< RtSpecies > > | m_species |
Ions. | |
Iterator class for RtLayout.
RtIterator< T >::RtIterator | ( | RtLayout< T > & | a_layout | ) |
Full constructor.
Iterator class for RtLayout.