19#if !defined(XSTRINGADAPTERALLOCATOR_INCLUDE_GUARD_1357924680)
20#define XSTRINGADAPTERALLOCATOR_INCLUDE_GUARD_1357924680
104 return m_allocator.getBlockCount();
115 return m_allocator.getBlockSize();
127 ArenaAllocatorType m_allocator;
#define XALAN_XPATH_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
ReusableArenaBlockType::size_type size_type
Class to hold XObjectPtr return types.
size_type getBlockCount() const
Get size of an ArenaBlock, that is, the number of objects in each block.
ReusableArenaAllocator< string_type > ArenaAllocatorType
XStringAdapter string_type
void reset()
Delete all XStringAdapter objects from allocator.
bool destroy(string_type *theString)
Delete an XStringAdapter object from allocator.
XStringAdapterAllocator(MemoryManager &theManager, size_type theBlockCount)
Construct an instance that will allocate blocks of the specified size.
~XStringAdapterAllocator()
ArenaAllocatorType::size_type size_type
string_type * createString(const XObjectPtr &theXObject, XPathExecutionContext &theExecutionContext)
Create an XString object from a string.
size_type getBlockSize() const
Get the number of ArenaBlocks currently allocated.
bool ownsObject(const string_type *theObject)
Determine if an object is owned by the allocator...