#include <MeshBasedCellPopulation.hpp>
Public Member Functions | |
Node< DIM > * | GetNodeA () |
Node< DIM > * | GetNodeB () |
CellPtr | GetCellA () |
CellPtr | GetCellB () |
bool | operator!= (const MeshBasedCellPopulation< DIM >::SpringIterator &rOther) |
SpringIterator & | operator++ () |
SpringIterator (MeshBasedCellPopulation< DIM > &rCellPopulation, typename MutableMesh< DIM, DIM >::EdgeIterator edgeIter) | |
Private Attributes | |
std::set< std::set< unsigned > > | mSpringsVisited |
MeshBasedCellPopulation< DIM > & | mrCellPopulation |
MutableMesh< DIM, DIM > ::EdgeIterator | mEdgeIter |
This class takes care of the logic to make sure that you consider each edge exactly once.
Definition at line 416 of file MeshBasedCellPopulation.hpp.
MeshBasedCellPopulation< DIM >::SpringIterator::SpringIterator | ( | MeshBasedCellPopulation< DIM > & | rCellPopulation, | |
typename MutableMesh< DIM, DIM >::EdgeIterator | edgeIter | |||
) | [inline] |
Constructor for a new iterator.
rCellPopulation | the cell population | |
edgeIter | iterator over edges in the mesh |
Definition at line 899 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter, and MeshBasedCellPopulation< DIM >::SpringIterator::mrCellPopulation.
Node< DIM > * MeshBasedCellPopulation< DIM >::SpringIterator::GetNodeA | ( | ) | [inline] |
Get a pointer to the node in the mesh at end A of the spring.
Definition at line 846 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter.
Node< DIM > * MeshBasedCellPopulation< DIM >::SpringIterator::GetNodeB | ( | ) | [inline] |
Get a pointer to the node in the mesh at end B of the spring.
Definition at line 852 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter.
CellPtr MeshBasedCellPopulation< DIM >::SpringIterator::GetCellA | ( | ) | [inline] |
Get the cell at end A of the spring.
Definition at line 858 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter, and MeshBasedCellPopulation< DIM >::SpringIterator::mrCellPopulation.
CellPtr MeshBasedCellPopulation< DIM >::SpringIterator::GetCellB | ( | ) | [inline] |
Get the cell at end B of the spring.
Definition at line 865 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter, and MeshBasedCellPopulation< DIM >::SpringIterator::mrCellPopulation.
bool MeshBasedCellPopulation< DIM >::SpringIterator::operator!= | ( | const MeshBasedCellPopulation< DIM >::SpringIterator & | rOther | ) | [inline] |
Comparison not-equal-to.
rOther | SpringIterator with which comparison is made |
Definition at line 872 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter.
MeshBasedCellPopulation< DIM >::SpringIterator & MeshBasedCellPopulation< DIM >::SpringIterator::operator++ | ( | ) | [inline] |
Prefix increment operator.
Definition at line 878 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter, and MeshBasedCellPopulation< DIM >::SpringIterator::mrCellPopulation.
std::set<std::set<unsigned> > MeshBasedCellPopulation< DIM >::SpringIterator::mSpringsVisited [private] |
Keep track of what edges have been visited.
Definition at line 463 of file MeshBasedCellPopulation.hpp.
MeshBasedCellPopulation<DIM>& MeshBasedCellPopulation< DIM >::SpringIterator::mrCellPopulation [private] |
The cell population member.
Definition at line 466 of file MeshBasedCellPopulation.hpp.
Referenced by MeshBasedCellPopulation< DIM >::SpringIterator::GetCellA(), MeshBasedCellPopulation< DIM >::SpringIterator::GetCellB(), MeshBasedCellPopulation< DIM >::SpringIterator::operator++(), and MeshBasedCellPopulation< DIM >::SpringIterator::SpringIterator().
MutableMesh<DIM, DIM>::EdgeIterator MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter [private] |
The edge iterator member.
Definition at line 469 of file MeshBasedCellPopulation.hpp.
Referenced by MeshBasedCellPopulation< DIM >::SpringIterator::GetCellA(), MeshBasedCellPopulation< DIM >::SpringIterator::GetCellB(), MeshBasedCellPopulation< DIM >::SpringIterator::GetNodeA(), MeshBasedCellPopulation< DIM >::SpringIterator::GetNodeB(), MeshBasedCellPopulation< DIM >::SpringIterator::operator!=(), MeshBasedCellPopulation< DIM >::SpringIterator::operator++(), and MeshBasedCellPopulation< DIM >::SpringIterator::SpringIterator().