1 #ifndef MOAB_MB_ITER_HPP
2 #define MOAB_MB_ITER_HPP
25 bool recursive =
false )
57 void remove_type( std::vector< EntityHandle >& vect, EntityType
t )
59 vect.erase( std::remove_if( vect.begin(), vect.end(),
IsType(
t ) ), vect.end() );
64 std::pair< Range::iterator, Range::iterator > p = range.equal_range(
t );
65 range.erase( p.first, p.second );
72 template <
typename T >
75 if( 0 > num_steps )
return MB_FAILURE;
77 while( num_steps && curr != end )
82 at_end = ( curr == end );
86 template <
typename T >
88 const typename std::vector< T >::const_iterator& end,
92 if( 0 > num_steps )
return MB_FAILURE;
94 assert( curr <= end );
95 at_end = ( end - curr <= num_steps );
105 const Range::const_iterator& end,
109 if( 0 > num_steps )
return MB_FAILURE;
111 at_end = ( end - curr <= num_steps );
120 template <
class Container >
132 bool recursive =
false )
139 typename Container::const_iterator
position()
const
144 typename Container::const_iterator
end()
const