MOAB: Mesh Oriented datABase  (version 5.4.1)
MBIter< Container > Class Template Reference

#include <MBIter.hpp>

+ Inheritance diagram for MBIter< Container >:
+ Collaboration diagram for MBIter< Container >:

Public Member Functions

 MBIter (iBase_EntityType type, iMesh_EntityTopology topology, EntityHandle set, int arr_size, bool recursive=false)
 ~MBIter ()
Container::const_iterator position () const
Container::const_iterator end () const
ErrorCode step (int num_steps, bool &at_end)
void get_entities (Core *mb, EntityHandle *array, int &count)
virtual ErrorCode reset (Interface *mb)

Protected Attributes

Container iterData
Container::const_iterator iterPos

Detailed Description

template<class Container>
class MBIter< Container >

Definition at line 121 of file MBIter.hpp.


Constructor & Destructor Documentation

template<class Container >
MBIter< Container >::MBIter ( iBase_EntityType  type,
iMesh_EntityTopology  topology,
EntityHandle  set,
int  arr_size,
bool  recursive = false 
) [inline]

Definition at line 128 of file MBIter.hpp.

        : iBase_EntityArrIterator_Private( type, topology, set, arr_size, recursive ), iterPos( iterData.end() )
    {
    }
template<class Container >
MBIter< Container >::~MBIter ( ) [inline]

Definition at line 137 of file MBIter.hpp.

{}

Member Function Documentation

template<class Container >
Container::const_iterator MBIter< Container >::end ( ) const [inline]
template<class Container >
void MBIter< Container >::get_entities ( Core *  mb,
EntityHandle *  array,
int &  count 
) [inline, virtual]

Implements iBase_EntityArrIterator_Private.

Definition at line 154 of file MBIter.hpp.

References iBase_EntityArrIterator_Private::arrSize, MBIter< Container >::iterData, and MBIter< Container >::iterPos.

    {
        for( count = 0; count < arrSize && iterPos != iterData.end(); ++iterPos )
            if( mb->is_valid( *iterPos ) ) array[count++] = *iterPos;
    }
template<class Container >
Container::const_iterator MBIter< Container >::position ( ) const [inline]

Definition at line 139 of file MBIter.hpp.

References MBIter< Container >::iterPos.

Referenced by iMesh_connectIterate(), iMesh_coordsIterate(), and iMesh_tagIterate().

    {
        return iterPos;
    };
template<class Container >
ErrorCode MBIter< Container >::step ( int  num_steps,
bool &  at_end 
) [inline, virtual]

Implements iBase_EntityArrIterator_Private.

Definition at line 149 of file MBIter.hpp.

References MBIter< Container >::end(), MBIter< Container >::iterPos, and step_iterator().

    {
        return step_iterator( iterPos, end(), num_steps, at_end );
    }

Member Data Documentation

template<class Container >
Container MBIter< Container >::iterData [protected]
template<class Container >
Container::const_iterator MBIter< Container >::iterPos [protected]

List of all members.


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