Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
#include <PottsMesh.hpp>
Public Member Functions | |
PottsElement< DIM > & | operator* () |
PottsElement< DIM > * | operator-> () |
bool | operator!= (const typename PottsMesh< DIM >::PottsElementIterator &rOther) |
PottsElementIterator & | operator++ () |
PottsElementIterator (PottsMesh< DIM > &rMesh, typename std::vector< PottsElement< DIM > * >::iterator elementIter, bool skipDeletedElements=true) | |
Private Member Functions | |
bool | IsAtEnd () |
bool | IsAllowedElement () |
Private Attributes | |
PottsMesh< DIM > & | mrMesh |
std::vector< PottsElement< DIM > * >::iterator | mElementIter |
bool | mSkipDeletedElements |
A smart iterator over the elements in the mesh.
Definition at line 347 of file PottsMesh.hpp.
PottsMesh< DIM >::PottsElementIterator::PottsElementIterator | ( | PottsMesh< 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 PottsMesh::GetElementIteratorBegin and PottsMesh::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 467 of file PottsMesh.hpp.
References PottsMesh< DIM >::PottsElementIterator::IsAllowedElement(), PottsMesh< DIM >::PottsElementIterator::mElementIter, and PottsMesh< DIM >::PottsElementIterator::mrMesh.
|
inlineprivate |
Definition at line 497 of file PottsMesh.hpp.
Referenced by PottsMesh< DIM >::PottsElementIterator::PottsElementIterator().
Definition at line 491 of file PottsMesh.hpp.
Referenced by PottsMesh< DIM >::PottsElementIterator::operator*().
|
inline |
Comparison not-equal-to.
rOther | iterator with which comparison is made |
Definition at line 449 of file PottsMesh.hpp.
References PottsMesh< DIM >::PottsElementIterator::mElementIter.
|
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 435 of file PottsMesh.hpp.
References PottsMesh< DIM >::PottsElementIterator::IsAtEnd(), and PottsMesh< DIM >::PottsElementIterator::mElementIter.
|
inline |
|
inline |
|
private |
The actual element iterator.
Definition at line 397 of file PottsMesh.hpp.
Referenced by PottsMesh< DIM >::PottsElementIterator::PottsElementIterator(), PottsMesh< DIM >::PottsElementIterator::operator!=(), and PottsMesh< DIM >::PottsElementIterator::operator*().
The mesh we're iterating over.
Definition at line 394 of file PottsMesh.hpp.
Referenced by PottsMesh< DIM >::PottsElementIterator::PottsElementIterator().
Definition at line 400 of file PottsMesh.hpp.