moab
iBase_EntityArrIterator_Private Struct Reference

#include <MBIter.hpp>

Inheritance diagram for iBase_EntityArrIterator_Private:
MBIter< Container > PartBoundaryIter SetIntersectIter< Container >

List of all members.

Classes

class  IsType

Public Member Functions

 iBase_EntityArrIterator_Private (iBase_EntityType type, iMesh_EntityTopology topology, EntityHandle set, int array_sz, bool recursive=false)
virtual ~iBase_EntityArrIterator_Private ()
int array_size () const
virtual ErrorCode step (int num_steps, bool &at_end)=0
virtual void get_entities (Core *mb, EntityHandle *array, int &count_out)=0
virtual ErrorCode reset (Interface *mb)=0
void remove_type (std::vector< EntityHandle > &vect, EntityType t)
void remove_type (Range &range, EntityType t)

Protected Attributes

iBase_EntityType entType
iMesh_EntityTopology entTopo
EntityHandle entSet
int arrSize
bool isRecursive

Detailed Description

Definition at line 11 of file MBIter.hpp.


Constructor & Destructor Documentation

iBase_EntityArrIterator_Private::iBase_EntityArrIterator_Private ( iBase_EntityType  type,
iMesh_EntityTopology  topology,
EntityHandle  set,
int  array_sz,
bool  recursive = false 
) [inline]

Definition at line 21 of file MBIter.hpp.

            : entType(type), entTopo(topology), entSet(set), arrSize(array_sz), isRecursive(recursive)
      {}

Definition at line 29 of file MBIter.hpp.

{}

Member Function Documentation

Definition at line 31 of file MBIter.hpp.

{ return arrSize; }
virtual void iBase_EntityArrIterator_Private::get_entities ( Core *  mb,
EntityHandle *  array,
int &  count_out 
) [pure virtual]

Implemented in MBIter< Container >.

void iBase_EntityArrIterator_Private::remove_type ( std::vector< EntityHandle > &  vect,
EntityType  t 
) [inline]

Definition at line 49 of file MBIter.hpp.

                                                                    {
      vect.erase( std::remove_if( vect.begin(), vect.end(), IsType(t) ), vect.end() );
    }
void iBase_EntityArrIterator_Private::remove_type ( Range &  range,
EntityType  t 
) [inline]

Definition at line 53 of file MBIter.hpp.

                                                   {
      std::pair<Range::iterator,Range::iterator> p = range.equal_range(t);
      range.erase( p.first, p.second );
    }
virtual ErrorCode iBase_EntityArrIterator_Private::reset ( Interface *  mb) [pure virtual]

Implemented in MBIter< Container >.

virtual ErrorCode iBase_EntityArrIterator_Private::step ( int  num_steps,
bool &  at_end 
) [pure virtual]

Implemented in MBIter< Container >.


Member Data Documentation

Definition at line 17 of file MBIter.hpp.

EntityHandle iBase_EntityArrIterator_Private::entSet [protected]

Definition at line 16 of file MBIter.hpp.

Definition at line 18 of file MBIter.hpp.


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