Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
|
#include <AbstractTetrahedralMesh.hpp>
Public Member Functions | |
Element< ELEMENT_DIM, SPACE_DIM > & | operator* () |
Element< ELEMENT_DIM, SPACE_DIM > * | operator-> () |
bool | operator!= (const typename AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator &rOther) |
ElementIterator & | operator++ () |
ElementIterator (AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, typename std::vector< Element< ELEMENT_DIM, SPACE_DIM > * >::iterator elementIter, bool skipDeletedElements=true) | |
Private Member Functions | |
bool | IsAtEnd () |
bool | IsAllowedElement () |
Private Attributes | |
AbstractTetrahedralMesh & | mrMesh |
std::vector< Element< ELEMENT_DIM, SPACE_DIM > * >::iterator | mElementIter |
bool | mSkipDeletedElements |
A smart iterator over the elements in the mesh.
Definition at line 633 of file AbstractTetrahedralMesh.hpp.
AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::ElementIterator | ( | AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > & | rMesh, |
typename std::vector< Element< ELEMENT_DIM, SPACE_DIM > * >::iterator | elementIter, | ||
bool | skipDeletedElements = true |
||
) |
Constructor for a new iterator.
This should not be called directly by user code; use the mesh methods AbstractTetrahedralMesh::GetElementIteratorBegin and AbstractTetrahedralMesh::GetElementIteratorEnd instead.
rMesh | the mesh to iterator over |
elementIter | where to start iterating |
skipDeletedElements | whether to include deleted elements |
Definition at line 770 of file AbstractTetrahedralMesh.hpp.
References AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::IsAllowedElement(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::mElementIter, AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::mElements, and AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::mrMesh.
|
inlineprivate |
Helper method to say if we're allowed to point at this element.
Definition at line 800 of file AbstractTetrahedralMesh.hpp.
Referenced by AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::ElementIterator().
|
inlineprivate |
Helper method to say when we're at the end.
Definition at line 794 of file AbstractTetrahedralMesh.hpp.
Referenced by AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::operator*().
|
inline |
rOther | iterator with which comparison is made |
Definition at line 752 of file AbstractTetrahedralMesh.hpp.
References AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::mElementIter.
|
inline |
Dereference the iterator giving you a *reference* to the current element.
Definition at line 738 of file AbstractTetrahedralMesh.hpp.
References AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::IsAtEnd(), and AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::mElementIter.
|
inline |
Prefix increment operator.
Definition at line 758 of file AbstractTetrahedralMesh.hpp.
|
inline |
Member access from a pointer.
Definition at line 745 of file AbstractTetrahedralMesh.hpp.
|
private |
The actual element iterator.
Definition at line 681 of file AbstractTetrahedralMesh.hpp.
Referenced by AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::ElementIterator(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::operator!=(), and AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::operator*().
|
private |
The mesh we're iterating over.
Definition at line 678 of file AbstractTetrahedralMesh.hpp.
Referenced by AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ElementIterator::ElementIterator().
|
private |
Whether to skip deleted elements.
Definition at line 684 of file AbstractTetrahedralMesh.hpp.