#include <AbstractCellPopulation.hpp>
Public Member Functions | |
CellPtr | operator* () |
CellPtr | operator-> () |
bool | operator!= (const typename AbstractCellPopulation< ELEMENT_DIM, SPACE_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 |
Iterator class allows one to iterate over cells in the cell population. Dereferencing the iterator will give you the current cell. There are also methods to get the node representing this cell, and the location of that node.
Definition at line 757 of file AbstractCellPopulation.hpp.
AbstractCellPopulation< ELEMENT_DIM, SPACE_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 888 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::IsRealCell(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mCellIter, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mrCellPopulation, and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::rGetCells().
virtual AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::~Iterator | ( | ) | [inline, virtual] |
The iterator must have a virtual destructor.
Definition at line 799 of file AbstractCellPopulation.hpp.
bool AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::IsAtEnd | ( | ) | [inline, private] |
Private helper function.
Definition at line 882 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mCellIter, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mrCellPopulation, and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::rGetCells().
Referenced by AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::operator++(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::operator->().
bool AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::IsRealCell | ( | ) | [inline, private, virtual] |
Private helper function.
Real cells are not deleted.
Definition at line 876 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::IsCellAssociatedWithADeletedLocation(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mCellIter, and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mrCellPopulation.
Referenced by AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::Iterator(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::operator++().
bool AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::operator!= | ( | const typename AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator & | rOther | ) | [inline] |
Comparison not-equal-to.
rOther | iterator with which comparison is made |
Definition at line 858 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mCellIter.
CellPtr AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::operator* | ( | ) | [inline] |
Dereference the iterator giving you a pointer to the current cell.
Definition at line 844 of file AbstractCellPopulation.hpp.
AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator & AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::operator++ | ( | ) | [inline] |
Prefix increment operator.
Definition at line 864 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::IsAtEnd(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::IsRealCell(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mCellIter.
CellPtr AbstractCellPopulation< ELEMENT_DIM, SPACE_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 851 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::IsAtEnd(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mCellIter.
std::list<CellPtr>::iterator AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mCellIter [private] |
Cell iterator member.
Definition at line 823 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::IsAtEnd(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::IsRealCell(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::Iterator(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::operator!=(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::operator++(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::operator->().
AbstractCellPopulation& AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::mrCellPopulation [private] |
The cell population member.
Definition at line 820 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::IsAtEnd(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::IsRealCell(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Iterator::Iterator().