#include <AbstractTissue.hpp>
Public Member Functions | |
TissueCell & | operator* () |
TissueCell * | operator-> () |
bool | operator!= (const Iterator &other) |
Iterator & | operator++ () |
Iterator (AbstractTissue &rTissue, std::list< TissueCell >::iterator cellIter) | |
virtual | ~Iterator () |
Private Member Functions | |
virtual bool | IsRealCell () |
bool | IsAtEnd () |
Private Attributes | |
AbstractTissue & | mrTissue |
std::list< TissueCell >::iterator | mCellIter |
Definition at line 494 of file AbstractTissue.hpp.
AbstractTissue< DIM >::Iterator::Iterator | ( | AbstractTissue & | rTissue, | |
std::list< TissueCell >::iterator | cellIter | |||
) | [inline] |
Constructor for a new iterator.
rTissue | the tissue | |
cellIter | iterator over list of cells |
Definition at line 645 of file AbstractTissue.hpp.
References AbstractTissue< DIM >::Iterator::IsRealCell(), AbstractTissue< DIM >::Iterator::mCellIter, AbstractTissue< DIM >::Iterator::mrTissue, and AbstractTissue< DIM >::rGetCells().
virtual AbstractTissue< DIM >::Iterator::~Iterator | ( | ) | [inline, virtual] |
The iterator must have a virtual destructor.
Definition at line 532 of file AbstractTissue.hpp.
TissueCell & AbstractTissue< DIM >::Iterator::operator* | ( | ) | [inline] |
Dereference the iterator giving you a *reference* to the current cell. Make sure to use a reference for the result to avoid copying cells unnecessarily.
Definition at line 601 of file AbstractTissue.hpp.
References AbstractTissue< DIM >::Iterator::IsAtEnd(), and AbstractTissue< DIM >::Iterator::mCellIter.
TissueCell * AbstractTissue< DIM >::Iterator::operator-> | ( | ) | [inline] |
Member access from a pointer.
Definition at line 608 of file AbstractTissue.hpp.
References AbstractTissue< DIM >::Iterator::IsAtEnd().
bool AbstractTissue< DIM >::Iterator::operator!= | ( | const Iterator & | other | ) | [inline] |
Comparison not-equal-to.
other | iterator with which comparison is made |
AbstractTissue< DIM >::Iterator & AbstractTissue< DIM >::Iterator::operator++ | ( | ) | [inline] |
Prefix increment operator.
Definition at line 621 of file AbstractTissue.hpp.
References AbstractTissue< DIM >::Iterator::IsAtEnd(), AbstractTissue< DIM >::Iterator::IsRealCell(), and AbstractTissue< DIM >::Iterator::mCellIter.
bool AbstractTissue< 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 633 of file AbstractTissue.hpp.
References AbstractTissue< DIM >::IsCellAssociatedWithADeletedNode(), AbstractTissue< DIM >::Iterator::mCellIter, and AbstractTissue< DIM >::Iterator::mrTissue.
Referenced by AbstractTissue< DIM >::Iterator::Iterator(), and AbstractTissue< DIM >::Iterator::operator++().
bool AbstractTissue< DIM >::Iterator::IsAtEnd | ( | ) | [inline, private] |
Private helper function saying whether we're at the end of the cells.
Definition at line 639 of file AbstractTissue.hpp.
References AbstractTissue< DIM >::Iterator::mCellIter, AbstractTissue< DIM >::Iterator::mrTissue, and AbstractTissue< DIM >::rGetCells().
Referenced by AbstractTissue< DIM >::Iterator::operator*(), AbstractTissue< DIM >::Iterator::operator++(), and AbstractTissue< DIM >::Iterator::operator->().
AbstractTissue& AbstractTissue< DIM >::Iterator::mrTissue [private] |
The tissue member.
Definition at line 551 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::Iterator::IsAtEnd(), AbstractTissue< DIM >::Iterator::IsRealCell(), and AbstractTissue< DIM >::Iterator::Iterator().
std::list<TissueCell>::iterator AbstractTissue< DIM >::Iterator::mCellIter [private] |
Cell iterator member.
Definition at line 554 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::Iterator::IsAtEnd(), AbstractTissue< DIM >::Iterator::IsRealCell(), AbstractTissue< DIM >::Iterator::Iterator(), AbstractTissue< DIM >::Iterator::operator*(), and AbstractTissue< DIM >::Iterator::operator++().