17 #if !defined(REUSABLEARENAALLOCATOR_INCLUDE_GUARD_1357924680)
18 #define REUSABLEARENAALLOCATOR_INCLUDE_GUARD_1357924680
31 XALAN_CPP_NAMESPACE_BEGIN
35 template<
class ObjectType>
37 ReusableArenaBlock<ObjectType> >
66 bool destroyBlocks =
false) :
88 assert ( theObject != 0 );
98 while( iTerator != iEnd
99 && (*iTerator)->blockAvailable() )
101 if ((*iTerator)->ownsBlock(theObject) ==
true)
103 (*iTerator)->destroyObject(theObject);
136 while ( !bResult && rIterator != rEnd )
138 if ((*rIterator)->ownsBlock(theObject))
140 (*rIterator)->destroyObject(theObject);
165 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)