#include <SetIterator.hpp>
Public Member Functions | |
virtual ErrorCode | get_next_arr (std::vector< EntityHandle > &arr, bool &atend) |
get the next chunkSize entities Return the next chunkSize entities. More... | |
virtual ErrorCode | reset () |
reset the iterator to the beginning of the set More... | |
ErrorCode | decrement (int num) |
decrement the position by the specified number; returns MB_FAILURE if resulting index is < 0 More... | |
Public Member Functions inherited from moab::SetIterator | |
virtual | ~SetIterator () |
destructor More... | |
EntityHandle | ent_set () const |
get the ent set for this iterator More... | |
unsigned int | chunk_size () const |
get the chunk size of this iterator More... | |
EntityType | ent_type () const |
get the entity type for this iterator More... | |
int | ent_dimension () const |
get the dimension for this iterator More... | |
Protected Member Functions | |
VectorSetIterator (Core *core, EntityHandle eset, int chunk_sz, EntityType ent_tp, int ent_dim, bool check_valid=false) | |
Constructor. More... | |
Protected Member Functions inherited from moab::SetIterator | |
SetIterator (Core *core, EntityHandle eset, unsigned int chunk_sz, EntityType ent_tp, int ent_dim, bool check_valid=false) | |
Constructor. More... | |
Private Attributes | |
int | iterPos |
Current iterator position, 0 if at beginning. More... | |
Friends | |
class | Core |
Additional Inherited Members | |
Protected Attributes inherited from moab::SetIterator | |
Core * | myCore |
Core instance. More... | |
EntityHandle | entSet |
handle for entity set corresponding to this iterator More... | |
unsigned int | chunkSize |
chunk size of this iterator More... | |
EntityType | entType |
entity type this iterator iterates over More... | |
int | entDimension |
dimension this iterator iterates over More... | |
bool | checkValid |
check for entity validity before returning handles More... | |
Definition at line 153 of file SetIterator.hpp.
|
inlineprotected |
Constructor.
core | MOAB Core instance |
ent_set | EntitySet to which this iterator corresponds |
chunk_size | Chunk size of this iterator |
ent_type | Entity type for this iterator |
ent_dim | Entity dimension for this iterator |
Definition at line 179 of file SetIterator.hpp.
|
inline |
decrement the position by the specified number; returns MB_FAILURE if resulting index is < 0
Definition at line 194 of file SetIterator.hpp.
References iterPos, and MB_SUCCESS.
|
virtual |
get the next chunkSize entities Return the next chunkSize entities.
arr | Array of entities returned. |
atend | Returns true if iterator is at the end of iterable values, otherwise false |
Implements moab::SetIterator.
Definition at line 235 of file SetIterator.cpp.
References moab::SetIterator::checkValid, moab::SetIterator::chunkSize, moab::WriteUtilIface::CONTENTS, moab::CN::Dimension(), moab::SetIterator::entDimension, moab::SetIterator::entSet, moab::SetIterator::entType, ErrorCode, iface, moab::Core::is_valid(), iterPos, MB_SUCCESS, MBMAXTYPE, moab::SetIterator::myCore, moab::Interface::query_interface(), moab::Interface::release_interface(), and moab::TYPE_FROM_HANDLE().
|
virtual |
reset the iterator to the beginning of the set
Implements moab::SetIterator.
Definition at line 285 of file SetIterator.cpp.
References iterPos, and MB_SUCCESS.
|
friend |
Definition at line 156 of file SetIterator.hpp.
|
private |
Current iterator position, 0 if at beginning.
Definition at line 191 of file SetIterator.hpp.
Referenced by decrement(), get_next_arr(), and reset().