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 MeshBasedTissue< DIM >::SpringIterator &rOther)
SpringIteratoroperator++ ()
 SpringIterator (MeshBasedTissue< DIM > &rTissue, typename MutableMesh< DIM, DIM >::EdgeIterator edgeIter)

Private Attributes

std::set< std::set< unsigned > > mSpringsVisited
MeshBasedTissue< DIM > & mrTissue
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 374 of file MeshBasedTissue.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
MeshBasedTissue< DIM >::SpringIterator::SpringIterator ( MeshBasedTissue< DIM > &  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 618 of file MeshBasedTissue.cpp.

References MeshBasedTissue< DIM >::SpringIterator::mEdgeIter, 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 565 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 571 of file MeshBasedTissue.cpp.

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

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

Get a *reference* to the cell at end A of the spring.

Definition at line 577 of file MeshBasedTissue.cpp.

References MeshBasedTissue< DIM >::SpringIterator::mEdgeIter, and MeshBasedTissue< DIM >::SpringIterator::mrTissue.

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

Get a *reference* to the cell at end B of the spring.

Definition at line 584 of file MeshBasedTissue.cpp.

References MeshBasedTissue< DIM >::SpringIterator::mEdgeIter, and MeshBasedTissue< DIM >::SpringIterator::mrTissue.

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

Comparison not-equal-to.

Parameters:
rOther SpringIterator with which comparison is made

Definition at line 591 of file MeshBasedTissue.cpp.

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

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 421 of file MeshBasedTissue.hpp.

template<unsigned DIM>
MeshBasedTissue<DIM>& 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 Tue Aug 4 16:11:24 2009 for Chaste by  doxygen 1.5.5