MOAB: Mesh Oriented datABase  (version 5.4.1)
MBMesquite::EntityIterator Class Reference

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>

+ Inheritance diagram for MBMesquite::EntityIterator:

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

Detailed Description

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.


Constructor & Destructor Documentation

virtual MBMesquite::EntityIterator::~EntityIterator ( ) [inline, virtual]

Definition at line 372 of file MeshInterface.hpp.

{}

Member Function Documentation

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]

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines