Chaste Release::3.1
|
#include <SemMesh.hpp>
Public Member Functions | |
PottsElement< DIM > & | operator* () |
PottsElement< DIM > * | operator-> () |
bool | operator!= (const SemMesh< DIM >::SemElementIterator &rOther) |
SemElementIterator & | operator++ () |
SemElementIterator (SemMesh< DIM > &rMesh, typename std::vector< PottsElement< DIM > * >::iterator elementIter, bool skipDeletedElements=true) | |
Private Member Functions | |
bool | IsAtEnd () |
bool | IsAllowedElement () |
Private Attributes | |
SemMesh< DIM > & | mrMesh |
std::vector< PottsElement< DIM > * >::iterator | mElementIter |
bool | mSkipDeletedElements |
A smart iterator over the elements in the mesh.
Definition at line 266 of file SemMesh.hpp.
SemMesh< DIM >::SemElementIterator::SemElementIterator | ( | SemMesh< DIM > & | rMesh, |
typename std::vector< PottsElement< DIM > * >::iterator | elementIter, | ||
bool | skipDeletedElements = true |
||
) |
Constructor for a new iterator.
This should not be called directly by user code; use the mesh methods SemMesh::GetElementIteratorBegin and SemMesh::GetElementIteratorEnd instead.
rMesh | the mesh to iterator over |
elementIter | where to start iterating |
skipDeletedElements | whether to include deleted elements (defaults to true) |
Definition at line 381 of file SemMesh.hpp.
References SemMesh< DIM >::SemElementIterator::IsAllowedElement(), SemMesh< DIM >::SemElementIterator::mElementIter, and SemMesh< DIM >::SemElementIterator::mrMesh.
bool SemMesh< DIM >::SemElementIterator::IsAllowedElement | ( | ) | [inline, private] |
Helper method to say if we're allowed to point at this element.
Definition at line 411 of file SemMesh.hpp.
Referenced by SemMesh< DIM >::SemElementIterator::SemElementIterator().
Helper method to say when we're at the end.
Definition at line 405 of file SemMesh.hpp.
References SemMesh< DIM >::mElements.
Referenced by SemMesh< DIM >::SemElementIterator::operator*().
bool SemMesh< DIM >::SemElementIterator::operator!= | ( | const SemMesh< DIM >::SemElementIterator & | rOther | ) | [inline] |
Comparison not-equal-to.
rOther | iterator with which comparison is made |
Definition at line 363 of file SemMesh.hpp.
References SemMesh< DIM >::SemElementIterator::mElementIter.
PottsElement< DIM > & SemMesh< DIM >::SemElementIterator::operator* | ( | ) | [inline] |
Dereference the iterator giving you a *reference* to the current element.
Make sure to use a reference for the result to avoid copying elements unnecessarily.
Definition at line 349 of file SemMesh.hpp.
References SemMesh< DIM >::SemElementIterator::IsAtEnd(), and SemMesh< DIM >::SemElementIterator::mElementIter.
SemMesh< DIM >::SemElementIterator & SemMesh< DIM >::SemElementIterator::operator++ | ( | ) | [inline] |
Prefix increment operator.
Definition at line 369 of file SemMesh.hpp.
PottsElement< DIM > * SemMesh< DIM >::SemElementIterator::operator-> | ( | ) | [inline] |
Member access from a pointer.
Definition at line 356 of file SemMesh.hpp.
std::vector<PottsElement<DIM> *>::iterator SemMesh< DIM >::SemElementIterator::mElementIter [private] |
The actual element iterator.
Definition at line 312 of file SemMesh.hpp.
Referenced by SemMesh< DIM >::SemElementIterator::operator!=(), SemMesh< DIM >::SemElementIterator::operator*(), and SemMesh< DIM >::SemElementIterator::SemElementIterator().
SemMesh<DIM>& SemMesh< DIM >::SemElementIterator::mrMesh [private] |
The mesh we're iterating over.
Definition at line 309 of file SemMesh.hpp.
Referenced by SemMesh< DIM >::SemElementIterator::SemElementIterator().
bool SemMesh< DIM >::SemElementIterator::mSkipDeletedElements [private] |
Whether to skip deleted elements.
Definition at line 315 of file SemMesh.hpp.