MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Iterates through a set of entities. An EntityIterator is typically obtained via Mesh::vertex_iterator() or Mesh::element_iterator(). An iterator obtained in this way iterates over the set of all vertices/elements in the Mesh from which the iterator was obtained. More...
#include <MeshInterface.hpp>
Public Member Functions | |
virtual | ~EntityIterator () |
virtual void | restart ()=0 |
virtual Mesh::EntityHandle | operator* () const =0 |
virtual void | operator++ ()=0 |
++iterator | |
virtual bool | is_at_end () const =0 |
Iterates through a set of entities. An EntityIterator is typically obtained via Mesh::vertex_iterator() or Mesh::element_iterator(). An iterator obtained in this way iterates over the set of all vertices/elements in the Mesh from which the iterator was obtained.
Definition at line 369 of file MeshInterface.hpp.
virtual MBMesquite::EntityIterator::~EntityIterator | ( | ) | [inline, virtual] |
Definition at line 372 of file MeshInterface.hpp.
{}
virtual bool MBMesquite::EntityIterator::is_at_end | ( | ) | const [pure virtual] |
Returns false until the iterator has been advanced PAST the last entity. Once is_at_end() returns true, *iterator returns 0.
Implemented in MBMesquite::MeshImplElemIter, MBMesquite::MeshImplVertIter, and MBMesquite::IndexIterator.
Referenced by ExodusTest::check_mesh(), ArrayMeshTest::test_element_iterator(), ArrayMeshTest::test_vertex_iterator(), and ArrayMeshTest::test_vertex_iterator_one_based().
virtual Mesh::EntityHandle MBMesquite::EntityIterator::operator* | ( | ) | const [pure virtual] |
*iterator. Return the handle currently being pointed at by the iterator.
Implemented in MBMesquite::MeshImplElemIter, MBMesquite::MeshImplVertIter, and MBMesquite::IndexIterator.
virtual void MBMesquite::EntityIterator::operator++ | ( | ) | [pure virtual] |
++iterator
Implemented in MBMesquite::MeshImplElemIter, MBMesquite::MeshImplVertIter, and MBMesquite::IndexIterator.
virtual void MBMesquite::EntityIterator::restart | ( | ) | [pure virtual] |
Moves the iterator back to the first entity in the list.
Implemented in MBMesquite::MeshImplElemIter, MBMesquite::MeshImplVertIter, and MBMesquite::IndexIterator.
Referenced by ArrayMeshTest::test_element_iterator(), ArrayMeshTest::test_vertex_iterator(), and ArrayMeshTest::test_vertex_iterator_one_based().