MeshBasedCellPopulation< DIM >::SpringIterator Class Reference

#include <MeshBasedCellPopulation.hpp>

Collaboration diagram for MeshBasedCellPopulation< DIM >::SpringIterator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Node< DIM > * GetNodeA ()
Node< DIM > * GetNodeB ()
CellPtr GetCellA ()
CellPtr GetCellB ()
bool operator!= (const MeshBasedCellPopulation< DIM >::SpringIterator &rOther)
SpringIteratoroperator++ ()
 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


Detailed Description

template<unsigned DIM>
class MeshBasedCellPopulation< DIM >::SpringIterator

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 416 of file MeshBasedCellPopulation.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
MeshBasedCellPopulation< DIM >::SpringIterator::SpringIterator ( MeshBasedCellPopulation< DIM > &  rCellPopulation,
typename MutableMesh< DIM, DIM >::EdgeIterator  edgeIter 
) [inline]

Constructor for a new iterator.

Parameters:
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.


Member Function Documentation

template<unsigned DIM>
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.

template<unsigned DIM>
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.

template<unsigned DIM>
CellPtr MeshBasedCellPopulation< DIM >::SpringIterator::GetCellA (  )  [inline]

template<unsigned DIM>
CellPtr MeshBasedCellPopulation< DIM >::SpringIterator::GetCellB (  )  [inline]

template<unsigned DIM>
bool MeshBasedCellPopulation< DIM >::SpringIterator::operator!= ( const MeshBasedCellPopulation< DIM >::SpringIterator rOther  )  [inline]

Comparison not-equal-to.

Parameters:
rOther SpringIterator with which comparison is made

Definition at line 872 of file MeshBasedCellPopulation.cpp.

References MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter.

template<unsigned DIM>
MeshBasedCellPopulation< DIM >::SpringIterator & MeshBasedCellPopulation< DIM >::SpringIterator::operator++ (  )  [inline]


Member Data Documentation

template<unsigned DIM>
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.

template<unsigned DIM>
MutableMesh<DIM, DIM>::EdgeIterator MeshBasedCellPopulation< DIM >::SpringIterator::mEdgeIter [private]


The documentation for this class was generated from the following files:

Generated on Mon Apr 18 11:37:26 2011 for Chaste by  doxygen 1.5.5