Example #1
0
// Convert bit vector to the ArraySet.
// Note, Array is sorted automatically!
//
ArraySet::ArraySet( const BitSet& inSet, vuint32 ioLimitCount )
{
	InitSelf( inSet.get_Bits_1_Count() );
	
	SetIterator_Ptr iter = inSet.get_Iterator();
	SetIterator& refIter = *iter;

	ID_TYPE id;
	if( (id = refIter.FirstItem()) != 0 )
	{			
		do
		{
			Append( id );
		}
		while( (id = refIter.NextItem()) && ioLimitCount-- ); 
	
		put_IsSorted( true );
	}		
}