2 #error "SetIterator.hpp isn't supposed to be included into an application"
27 :
SetIterator( core, eset, chunk_sz, ent_tp, ent_dim, check_valid ), iterPos( 0 ), pairPtr( NULL ), numPairs( 0 )
62 pairPtr[i + 1] = ( *pi ).second;
76 std::vector< EntityHandle > tmp_arr;
77 std::vector< EntityHandle >* tmp_ptr = &arr;
100 assert( !( count % 2 ) );
115 for( std::vector< EntityHandle >::iterator vit = tmp_ptr->begin(); vit != tmp_ptr->end(); ++vit )
126 std::vector< EntityHandle >& arr,
129 unsigned int num_ret = 0;
133 while( (
int)idx < count &&
154 unsigned int this_ret =
chunkSize - num_ret;
155 unsigned int to_end = next -
iterPos + 1;
156 if( to_end < this_ret ) this_ret = to_end;
158 if( this_ret == to_end )
161 iterPos = ( (int)idx < count ? ptr[idx] : 0 );
177 std::vector< EntityHandle >& arr,
183 MB_SET_ERR( MB_FAILURE,
"Both dimension and type should not be set on an iterator" );
186 unsigned int num_ret = 0;
189 while( (
int)idx < count && (
iterPos > ptr[idx + 1] ||
208 unsigned int this_ret =
chunkSize - num_ret;
209 unsigned int to_end = next -
iterPos + 1;
210 if( to_end < this_ret ) this_ret = to_end;
212 if( this_ret == to_end )
215 iterPos = ( (int)idx < count ? ptr[idx] : 0 );
248 if( !count ||
iterPos >= count )
254 std::vector< EntityHandle > tmp_arr;
255 std::vector< EntityHandle >* tmp_ptr = &arr;
275 for( std::vector< EntityHandle >::iterator vit = tmp_ptr->begin(); vit != tmp_ptr->end(); ++vit )