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 351 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 641 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 588 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 594 of file MeshBasedTissue.cpp.

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

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 614 of file MeshBasedTissue.cpp.

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

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

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

Definition at line 600 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 607 of file MeshBasedTissue.cpp.

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


Member Data Documentation

template<unsigned DIM>
MutableMesh<DIM, DIM>::EdgeIterator MeshBasedTissue< DIM >::SpringIterator::mEdgeIter [private]
template<unsigned DIM>
MeshBasedTissue<DIM>& MeshBasedTissue< DIM >::SpringIterator::mrTissue [private]
template<unsigned DIM>
std::set<std::set<unsigned> > MeshBasedTissue< DIM >::SpringIterator::mSpringsVisited [private]

Keep track of what edges have been visited.

Definition at line 398 of file MeshBasedTissue.hpp.


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

Generated by  doxygen 1.6.2