Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#include <VertexMesh.hpp>
Public Member Functions | |
VertexElement< ELEMENT_DIM, SPACE_DIM > & | operator* () |
VertexElement< ELEMENT_DIM, SPACE_DIM > * | operator-> () |
bool | operator!= (const typename VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator &rOther) |
VertexElementIterator & | operator++ () |
VertexElementIterator (VertexMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, typename std::vector< VertexElement< ELEMENT_DIM, SPACE_DIM > * >::iterator elementIter, bool skipDeletedElements=true) | |
Private Member Functions | |
bool | IsAtEnd () |
bool | IsAllowedElement () |
Private Attributes | |
VertexMesh & | mrMesh |
std::vector< VertexElement< ELEMENT_DIM, SPACE_DIM > * >::iterator | mElementIter |
bool | mSkipDeletedElements |
A smart iterator over the elements in the mesh.
Definition at line 657 of file VertexMesh.hpp.
VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::VertexElementIterator | ( | VertexMesh< ELEMENT_DIM, SPACE_DIM > & | rMesh, |
typename std::vector< VertexElement< 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 VertexMesh::GetElementIteratorBegin and VertexMesh::GetElementIteratorEnd instead.
rMesh | the mesh to iterator over |
elementIter | where to start iterating |
skipDeletedElements | whether to include deleted elements |
Definition at line 776 of file VertexMesh.hpp.
References VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::IsAllowedElement(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::mElementIter, VertexMesh< ELEMENT_DIM, SPACE_DIM >::mElements, and VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::mrMesh.
|
inlineprivate |
Helper method to say if we're allowed to point at this element.
Definition at line 806 of file VertexMesh.hpp.
Referenced by VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::VertexElementIterator().
|
inlineprivate |
Helper method to say when we're at the end.
Definition at line 800 of file VertexMesh.hpp.
Referenced by VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::operator*().
|
inline |
Comparison not-equal-to.
rOther | iterator with which comparison is made |
Definition at line 759 of file VertexMesh.hpp.
References VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::mElementIter.
|
inline |
Dereference the iterator giving you a *reference* to the current element.
Definition at line 745 of file VertexMesh.hpp.
References VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::IsAtEnd(), and VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::mElementIter.
|
inline |
Prefix increment operator.
Definition at line 765 of file VertexMesh.hpp.
|
inline |
|
private |
The actual element iterator.
Definition at line 705 of file VertexMesh.hpp.
Referenced by VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::VertexElementIterator(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::operator!=(), and VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::operator*().
|
private |
The mesh we're iterating over.
Definition at line 702 of file VertexMesh.hpp.
Referenced by VertexMesh< ELEMENT_DIM, SPACE_DIM >::VertexElementIterator::VertexElementIterator().
|
private |
Whether to skip deleted elements.
Definition at line 708 of file VertexMesh.hpp.