#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 |
Iterator over edges in the mesh, which correspond to springs between cells.
This class takes care of the logic to make sure that you consider each edge exactly once.
Definition at line 417 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 903 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter, and MeshBasedCellPopulation< DIM >::SpringIterator::mrCellPopulation.
CellPtr MeshBasedCellPopulation< DIM >::SpringIterator::GetCellA | ( | ) | [inline] |
Get the cell at end A of the spring.
Definition at line 862 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 869 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 850 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 856 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter.
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 876 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter.
MeshBasedCellPopulation< DIM >::SpringIterator & MeshBasedCellPopulation< DIM >::SpringIterator::operator++ | ( | ) | [inline] |
Prefix increment operator.
Definition at line 882 of file MeshBasedCellPopulation.cpp.
References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter, and MeshBasedCellPopulation< DIM >::SpringIterator::mrCellPopulation.
MutableMesh<DIM, DIM>::EdgeIterator MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter [private] |
The edge iterator member.
Definition at line 470 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().
MeshBasedCellPopulation<DIM>& MeshBasedCellPopulation< DIM >::SpringIterator::mrCellPopulation [private] |
The cell population member.
Definition at line 467 of file MeshBasedCellPopulation.hpp.
Referenced by MeshBasedCellPopulation< DIM >::SpringIterator::GetCellA(), MeshBasedCellPopulation< DIM >::SpringIterator::GetCellB(), MeshBasedCellPopulation< DIM >::SpringIterator::operator++(), and MeshBasedCellPopulation< DIM >::SpringIterator::SpringIterator().
std::set<std::set<unsigned> > MeshBasedCellPopulation< DIM >::SpringIterator::mSpringsVisited [private] |
Keep track of what edges have been visited.
Definition at line 464 of file MeshBasedCellPopulation.hpp.