19#if !defined(XSTRINGREFERENCEALLOCATOR_INCLUDE_GUARD_1357924680)
20#define XSTRINGREFERENCEALLOCATOR_INCLUDE_GUARD_1357924680
56 MemoryManager& theManager,
84 return m_allocator.ownsObject(theObject);
102 return m_allocator.getBlockCount();
113 return m_allocator.getBlockSize();
125 ArenaAllocatorType m_allocator;
#define XALAN_CPP_NAMESPACE
#define XALAN_XPATH_EXPORT
ReusableArenaBlockType::size_type size_type
bool ownsObject(const string_type *theObject)
Determine if an object is owned by the allocator...
ArenaAllocatorType::size_type size_type
XStringReference string_type
bool destroy(string_type *theString)
Delete an XStringReference object from allocator.
void reset()
Delete all XStringReference objects from allocator.
ReusableArenaAllocator< string_type > ArenaAllocatorType
string_type * createString(const XalanDOMString &theString)
Create an XStringReference object from a string.
size_type getBlockCount() const
Get size of an ArenaBlock, that is, the number of objects in each block.
~XStringReferenceAllocator()
size_type getBlockSize() const
Get the number of ArenaBlocks currently allocated.
XStringReferenceAllocator(MemoryManager &theManager, size_type theBlockCount)
Construct an instance that will allocate blocks of the specified size.