MOAB: Mesh Oriented datABase  (version 5.4.1)
iBase_EntityArrIterator_Private Struct Reference

#include <MBIter.hpp>

+ Inheritance diagram for iBase_EntityArrIterator_Private:

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 30 of file MBIter.hpp.

{}

Member Function Documentation

Definition at line 32 of file MBIter.hpp.

References arrSize.

Referenced by iMesh_getNextEntArrIter().

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

Implemented in MBIter< Container >.

Referenced by iMesh_getNextEntArrIter().

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

Definition at line 57 of file MBIter.hpp.

Referenced by MBIter< Container >::reset().

    {
        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 62 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 >.

Referenced by iMesh_resetEntArrIter().

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

Implemented in MBIter< Container >.

Referenced by iMesh_stepEntArrIter().


Member Data Documentation

Definition at line 17 of file MBIter.hpp.

Referenced by array_size(), and MBIter< Container >::get_entities().

EntityHandle iBase_EntityArrIterator_Private::entSet [protected]

Definition at line 16 of file MBIter.hpp.

Referenced by MBIter< Container >::reset().

Definition at line 18 of file MBIter.hpp.

Referenced by MBIter< Container >::reset().

List of all members.


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