MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator Class Reference

#include <MeshBasedCellPopulation.hpp>

Collaboration diagram for MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Node< SPACE_DIM > * GetNodeA ()
Node< SPACE_DIM > * GetNodeB ()
CellPtr GetCellA ()
CellPtr GetCellB ()
bool operator!= (const typename MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator &rOther)
SpringIteratoroperator++ ()
 SpringIterator (MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation, typename MutableMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator edgeIter)

Private Attributes

std::set< std::set< unsigned > > mSpringsVisited
MeshBasedCellPopulation
< ELEMENT_DIM, SPACE_DIM > & 
mrCellPopulation
MutableMesh< ELEMENT_DIM,
SPACE_DIM >::EdgeIterator 
mEdgeIter

Detailed Description

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
class MeshBasedCellPopulation< ELEMENT_DIM, SPACE_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 433 of file MeshBasedCellPopulation.hpp.


Constructor & Destructor Documentation

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

Constructor for a new iterator.

Parameters:
rCellPopulation the cell population
edgeIter iterator over edges in the mesh

Definition at line 868 of file MeshBasedCellPopulation.cpp.

References MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::mEdgeIter, and MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::mrCellPopulation.


Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
CellPtr MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::GetCellA (  )  [inline]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
CellPtr MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::GetCellB (  )  [inline]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
Node< SPACE_DIM > * MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::GetNodeA (  )  [inline]
Returns:
a pointer to the node in the mesh at end A of the spring.

Definition at line 815 of file MeshBasedCellPopulation.cpp.

References MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::mEdgeIter.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
Node< SPACE_DIM > * MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::GetNodeB (  )  [inline]
Returns:
a pointer to the node in the mesh at end B of the spring.

Definition at line 821 of file MeshBasedCellPopulation.cpp.

References MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::mEdgeIter.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
bool MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::operator!= ( const typename MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator rOther  )  [inline]

Comparison not-equal-to.

Parameters:
rOther SpringIterator with which comparison is made
Returns:
not-equal

Definition at line 841 of file MeshBasedCellPopulation.cpp.

References MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::mEdgeIter.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator & MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::operator++ (  )  [inline]

Member Data Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
MutableMesh<ELEMENT_DIM, SPACE_DIM>::EdgeIterator MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::mEdgeIter [private]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
MeshBasedCellPopulation<ELEMENT_DIM, SPACE_DIM>& MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::mrCellPopulation [private]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
std::set<std::set<unsigned> > MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SpringIterator::mSpringsVisited [private]

Keep track of what edges have been visited.

Definition at line 482 of file MeshBasedCellPopulation.hpp.


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

Generated by  doxygen 1.6.2