19 #if !defined(REUSABLEARENAALLOCATOR_INCLUDE_GUARD_1357924680)
20 #define REUSABLEARENAALLOCATOR_INCLUDE_GUARD_1357924680
33 XALAN_CPP_NAMESPACE_BEGIN
37 template<
class ObjectType>
39 ReusableArenaBlock<ObjectType> >
66 MemoryManager& theManager,
68 bool destroyBlocks =
false) :
90 assert ( theObject != 0 );
100 while( iTerator != iEnd
101 && (*iTerator)->blockAvailable() )
103 if ((*iTerator)->ownsBlock(theObject) ==
true)
105 (*iTerator)->destroyObject(theObject);
138 while ( !bResult && rIterator != rEnd )
140 if ((*rIterator)->ownsBlock(theObject))
142 (*rIterator)->destroyObject(theObject);
167 if ( *rIterator == *iTerator)
222 assert( this->
m_blocks.
front()->ownsBlock(theObject) == true );
230 assert ( fullBlock != 0 );
249 while( iTerator != iEnd
250 && (*iTerator)->blockAvailable() )
252 if ((*iTerator)->ownsBlock(theObject) )
264 while( rIterator != rEnd )
266 if ((*rIterator)->ownsBlock(theObject) )
271 if ( *iTerator == *rIterator )
300 if ( (*iTerator)->isEmpty() )
305 (*iTerator)->blockAvailable() )
330 XALAN_CPP_NAMESPACE_END
334 #endif // !defined(REUSABLEARENAALLOCATOR_INCLUDE_GUARD_1357924680)