#include <AbstractCellPopulation.hpp>
Public Member Functions | |
CellPtr | operator* () |
CellPtr | operator-> () |
bool | operator!= (const AbstractCellPopulation< DIM >::Iterator &rOther) |
Iterator & | operator++ () |
Iterator (AbstractCellPopulation &rCellPopulation, std::list< CellPtr >::iterator cellIter) | |
virtual | ~Iterator () |
Private Member Functions | |
virtual bool | IsRealCell () |
bool | IsAtEnd () |
Private Attributes | |
AbstractCellPopulation & | mrCellPopulation |
std::list< CellPtr >::iterator | mCellIter |
Definition at line 672 of file AbstractCellPopulation.hpp.
AbstractCellPopulation< DIM >::Iterator::Iterator | ( | AbstractCellPopulation & | rCellPopulation, | |
std::list< CellPtr >::iterator | cellIter | |||
) | [inline] |
Constructor for a new iterator.
rCellPopulation | the cell population | |
cellIter | iterator over list of cells |
Definition at line 810 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< DIM >::Iterator::IsRealCell(), AbstractCellPopulation< DIM >::Iterator::mCellIter, AbstractCellPopulation< DIM >::Iterator::mrCellPopulation, and AbstractCellPopulation< DIM >::rGetCells().
virtual AbstractCellPopulation< DIM >::Iterator::~Iterator | ( | ) | [inline, virtual] |
The iterator must have a virtual destructor.
Definition at line 710 of file AbstractCellPopulation.hpp.
CellPtr AbstractCellPopulation< DIM >::Iterator::operator* | ( | ) | [inline] |
Dereference the iterator giving you a pointer to the current cell.
Definition at line 766 of file AbstractCellPopulation.hpp.
CellPtr AbstractCellPopulation< DIM >::Iterator::operator-> | ( | ) | [inline] |
Unusually for an iterator over a collection of pointers, this method allows you to access the object pointed at, rather than the pointer itself.
Definition at line 773 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< DIM >::Iterator::IsAtEnd(), and AbstractCellPopulation< DIM >::Iterator::mCellIter.
bool AbstractCellPopulation< DIM >::Iterator::operator!= | ( | const AbstractCellPopulation< DIM >::Iterator & | rOther | ) | [inline] |
Comparison not-equal-to.
rOther | iterator with which comparison is made |
Definition at line 780 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< DIM >::Iterator::mCellIter.
AbstractCellPopulation< DIM >::Iterator & AbstractCellPopulation< DIM >::Iterator::operator++ | ( | ) | [inline] |
Prefix increment operator.
Definition at line 786 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< DIM >::Iterator::IsAtEnd(), AbstractCellPopulation< DIM >::Iterator::IsRealCell(), and AbstractCellPopulation< DIM >::Iterator::mCellIter.
bool AbstractCellPopulation< DIM >::Iterator::IsRealCell | ( | ) | [inline, private, virtual] |
Private helper function which tells us if we're pointing at a real cell. Assumes we are within range (i.e. not at End).
Real cells are not deleted.
Definition at line 798 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< DIM >::IsCellAssociatedWithADeletedLocation(), AbstractCellPopulation< DIM >::Iterator::mCellIter, and AbstractCellPopulation< DIM >::Iterator::mrCellPopulation.
Referenced by AbstractCellPopulation< DIM >::Iterator::Iterator(), and AbstractCellPopulation< DIM >::Iterator::operator++().
bool AbstractCellPopulation< DIM >::Iterator::IsAtEnd | ( | ) | [inline, private] |
Private helper function saying whether we're at the end of the cells.
Definition at line 804 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< DIM >::Iterator::mCellIter, AbstractCellPopulation< DIM >::Iterator::mrCellPopulation, and AbstractCellPopulation< DIM >::rGetCells().
Referenced by AbstractCellPopulation< DIM >::Iterator::operator++(), and AbstractCellPopulation< DIM >::Iterator::operator->().
AbstractCellPopulation& AbstractCellPopulation< DIM >::Iterator::mrCellPopulation [private] |
The cell population member.
Definition at line 729 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::Iterator::IsAtEnd(), AbstractCellPopulation< DIM >::Iterator::IsRealCell(), and AbstractCellPopulation< DIM >::Iterator::Iterator().
std::list<CellPtr>::iterator AbstractCellPopulation< DIM >::Iterator::mCellIter [private] |
Cell iterator member.
Definition at line 732 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::Iterator::IsAtEnd(), AbstractCellPopulation< DIM >::Iterator::IsRealCell(), AbstractCellPopulation< DIM >::Iterator::Iterator(), AbstractCellPopulation< DIM >::Iterator::operator!=(), AbstractCellPopulation< DIM >::Iterator::operator++(), and AbstractCellPopulation< DIM >::Iterator::operator->().