MeshBasedTissue< DIM >::SpringIterator Class Reference

#include <MeshBasedTissue.hpp>

Collaboration diagram for MeshBasedTissue< DIM >::SpringIterator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Node< DIM > * GetNodeA ()
Node< DIM > * GetNodeB ()
TissueCellrGetCellA ()
TissueCellrGetCellB ()
bool operator!= (const SpringIterator &other)
SpringIteratoroperator++ ()
 SpringIterator (MeshBasedTissue &rTissue, typename MutableMesh< DIM, DIM >::EdgeIterator edgeIter)

Private Attributes

std::set< std::set< unsigned > > mSpringsVisited
MeshBasedTissuemrTissue
MutableMesh< DIM, DIM >
::EdgeIterator 
mEdgeIter


Detailed Description

template<unsigned DIM>
class MeshBasedTissue< 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 401 of file MeshBasedTissue.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
MeshBasedTissue< DIM >::SpringIterator::SpringIterator ( MeshBasedTissue rTissue,
typename MutableMesh< DIM, DIM >::EdgeIterator  edgeIter 
) [inline]

Constructor for a new iterator.

Parameters:
rTissue the tissue
edgeIter iterator over edges in the mesh

Definition at line 636 of file MeshBasedTissue.cpp.

References MeshBasedTissue< DIM >::IsGhostNode(), MeshBasedTissue< DIM >::SpringIterator::mEdgeIter, MeshBasedTissue< DIM >::mrMesh, and MeshBasedTissue< DIM >::SpringIterator::mrTissue.


Member Function Documentation

template<unsigned DIM>
Node< DIM > * MeshBasedTissue< DIM >::SpringIterator::GetNodeA (  )  [inline]

Get a pointer to the node in the mesh at end A of the spring.

Definition at line 583 of file MeshBasedTissue.cpp.

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

template<unsigned DIM>
Node< DIM > * MeshBasedTissue< DIM >::SpringIterator::GetNodeB (  )  [inline]

Get a pointer to the node in the mesh at end B of the spring.

Definition at line 589 of file MeshBasedTissue.cpp.

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

template<unsigned DIM>
TissueCell & MeshBasedTissue< DIM >::SpringIterator::rGetCellA (  )  [inline]

template<unsigned DIM>
TissueCell & MeshBasedTissue< DIM >::SpringIterator::rGetCellB (  )  [inline]

template<unsigned DIM>
bool MeshBasedTissue< DIM >::SpringIterator::operator!= ( const SpringIterator other  ) 

Comparison not-equal-to.

Parameters:
other SpringIterator with which comparison is made

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


Member Data Documentation

template<unsigned DIM>
std::set<std::set<unsigned> > MeshBasedTissue< DIM >::SpringIterator::mSpringsVisited [private]

Keep track of what edges have been visited.

Definition at line 448 of file MeshBasedTissue.hpp.

template<unsigned DIM>
MeshBasedTissue& MeshBasedTissue< DIM >::SpringIterator::mrTissue [private]

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


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

Generated on Wed Mar 18 12:52:36 2009 for Chaste by  doxygen 1.5.5