Wrapper around single-entity TSTT interator. More...
Public Member Functions | |
TSTTIterator (TSTTM::Entity &mesh, void *meshset, TSTTM::EntityType type, TSTTM::EntityTopology topo, MsqError &err) | |
virtual void | restart () |
reset iterator More... | |
virtual Mesh::EntityHandle | operator* () const |
get current entity handle More... | |
virtual bool | is_at_end () const |
check if any remaining entity handles More... | |
virtual void | operator++ () |
step More... | |
virtual | ~TSTTIterator () |
Public Member Functions inherited from EntityIterator | |
virtual | ~EntityIterator () |
Private Member Functions | |
void | get_next_entity () |
Advance the iterator to the next entity. More... | |
Private Attributes | |
TSTTM::Entity | tsttMesh |
TSTT mesh interface. More... | |
void * | tsttIter |
TSTT iterator handle. More... | |
bool | notAtEnd |
Flag to mark if end of iterator had been reached. More... | |
void * | entityHandle |
Current TSTT entity handle. More... | |
Wrapper around single-entity TSTT interator.
Definition at line 75 of file MeshTSTT.cpp.
TSTTIterator | ( | TSTTM::Entity & | mesh, |
void * | meshset, | ||
TSTTM::EntityType | type, | ||
TSTTM::EntityTopology | topo, | ||
MsqError & | err | ||
) |
mesh | The TSTT mesh interface instance |
meshset | The meshset to iterate over |
type | TSTT type in meshset to iterate over |
topo | TSTT topology in meshset to iterate over |
Definition at line 117 of file MeshTSTT.cpp.
References TSTTIterator::get_next_entity(), MsqError::INTERNAL_ERROR, MSQ_SETERR, Mesquite::process_tstt_error(), TSTTIterator::tsttIter, and TSTTIterator::tsttMesh.
|
virtual |
Definition at line 131 of file MeshTSTT.cpp.
References TSTTIterator::tsttIter, and TSTTIterator::tsttMesh.
|
inlineprivate |
Advance the iterator to the next entity.
Updates entityHandle and notAtEnd
Definition at line 87 of file MeshTSTT.cpp.
References TSTTIterator::entityHandle, TSTTIterator::notAtEnd, TSTTIterator::tsttIter, and TSTTIterator::tsttMesh.
Referenced by TSTTIterator::operator++(), TSTTIterator::restart(), and TSTTIterator::TSTTIterator().
|
virtual |
check if any remaining entity handles
Implements EntityIterator.
Definition at line 154 of file MeshTSTT.cpp.
References TSTTIterator::notAtEnd.
|
virtual |
get current entity handle
Implements EntityIterator.
Definition at line 149 of file MeshTSTT.cpp.
References TSTTIterator::entityHandle.
|
virtual |
step
Implements EntityIterator.
Definition at line 159 of file MeshTSTT.cpp.
References TSTTIterator::get_next_entity(), and Mesquite::process_tstt_error().
|
virtual |
reset iterator
Implements EntityIterator.
Definition at line 137 of file MeshTSTT.cpp.
References TSTTIterator::get_next_entity(), Mesquite::process_tstt_error(), TSTTIterator::tsttIter, and TSTTIterator::tsttMesh.
|
private |
Current TSTT entity handle.
Definition at line 81 of file MeshTSTT.cpp.
Referenced by TSTTIterator::get_next_entity(), and TSTTIterator::operator*().
|
private |
Flag to mark if end of iterator had been reached.
Definition at line 80 of file MeshTSTT.cpp.
Referenced by TSTTIterator::get_next_entity(), and TSTTIterator::is_at_end().
|
private |
TSTT iterator handle.
Definition at line 79 of file MeshTSTT.cpp.
Referenced by TSTTIterator::get_next_entity(), TSTTIterator::restart(), TSTTIterator::TSTTIterator(), and TSTTIterator::~TSTTIterator().
|
private |
TSTT mesh interface.
Definition at line 78 of file MeshTSTT.cpp.
Referenced by TSTTIterator::get_next_entity(), TSTTIterator::restart(), TSTTIterator::TSTTIterator(), and TSTTIterator::~TSTTIterator().