moab
moab::SetIterator Class Reference

#include <SetIterator.hpp>

Inheritance diagram for moab::SetIterator:
moab::RangeSetIterator moab::VectorSetIterator

List of all members.

Public Member Functions

virtual ~SetIterator ()
 destructor
EntityHandle ent_set () const
 get the ent set for this iterator
unsigned int chunk_size () const
 get the chunk size of this iterator
EntityType ent_type () const
 get the entity type for this iterator
int ent_dimension () const
 get the dimension for this iterator
virtual ErrorCode get_next_arr (std::vector< EntityHandle > &arr, bool &atend)=0
 get the next chunkSize entities Return the next chunkSize entities.
virtual ErrorCode reset ()=0
 reset the iterator to the beginning of the set

Protected Member Functions

 SetIterator (Core *core, EntityHandle eset, unsigned int chunk_sz, EntityType ent_tp, int ent_dim, bool check_valid=false)
 Constructor.

Protected Attributes

CoremyCore
 Core instance.
EntityHandle entSet
 handle for entity set corresponding to this iterator
unsigned int chunkSize
 chunk size of this iterator
EntityType entType
 entity type this iterator iterates over
int entDimension
 dimension this iterator iterates over
bool checkValid
 check for entity validity before returning handles

Friends

class Core

Detailed Description

Definition at line 13 of file SetIterator.hpp.


Constructor & Destructor Documentation

destructor

Definition at line 16 of file SetIterator.cpp.

moab::SetIterator::SetIterator ( Core core,
EntityHandle  eset,
unsigned int  chunk_sz,
EntityType  ent_tp,
int  ent_dim,
bool  check_valid = false 
) [inline, protected]

Constructor.

Parameters:
coreMOAB Core instance
ent_setEntitySet to which this iterator corresponds
chunk_sizeChunk size of this iterator
ent_typeEntity type for this iterator
ent_dimEntity dimension for this iterator

Definition at line 54 of file SetIterator.hpp.

          : myCore(core), entSet(eset), chunkSize(chunk_sz), 
            entType(ent_tp), entDimension(ent_dim), checkValid(check_valid) {};

Member Function Documentation

unsigned int moab::SetIterator::chunk_size ( ) const [inline]

get the chunk size of this iterator

Definition at line 26 of file SetIterator.hpp.

{return chunkSize;};
int moab::SetIterator::ent_dimension ( ) const [inline]

get the dimension for this iterator

Definition at line 32 of file SetIterator.hpp.

{return entDimension;};

get the ent set for this iterator

Definition at line 23 of file SetIterator.hpp.

{return entSet;};
EntityType moab::SetIterator::ent_type ( ) const [inline]

get the entity type for this iterator

Definition at line 29 of file SetIterator.hpp.

{return entType;};
virtual ErrorCode moab::SetIterator::get_next_arr ( std::vector< EntityHandle > &  arr,
bool &  atend 
) [pure virtual]

get the next chunkSize entities Return the next chunkSize entities.

Parameters:
arrArray of entities returned.
atendReturns true if iterator is at the end of iterable values, otherwise false

Implemented in moab::VectorSetIterator, and moab::RangeSetIterator.

virtual ErrorCode moab::SetIterator::reset ( ) [pure virtual]

reset the iterator to the beginning of the set

Implemented in moab::VectorSetIterator, and moab::RangeSetIterator.


Friends And Related Function Documentation

friend class Core [friend]

Reimplemented in moab::VectorSetIterator, and moab::RangeSetIterator.

Definition at line 17 of file SetIterator.hpp.


Member Data Documentation

check for entity validity before returning handles

Definition at line 75 of file SetIterator.hpp.

unsigned int moab::SetIterator::chunkSize [protected]

chunk size of this iterator

Definition at line 66 of file SetIterator.hpp.

dimension this iterator iterates over

Definition at line 72 of file SetIterator.hpp.

handle for entity set corresponding to this iterator

Definition at line 63 of file SetIterator.hpp.

EntityType moab::SetIterator::entType [protected]

entity type this iterator iterates over

Definition at line 69 of file SetIterator.hpp.

Core instance.

Definition at line 57 of file SetIterator.hpp.


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