19#if !defined(XSTRINGALLOCATOR_INCLUDE_GUARD_1357924680)
20#define XSTRINGALLOCATOR_INCLUDE_GUARD_1357924680
104 return m_allocator.ownsObject(
theObject);
122 return m_allocator.getBlockCount();
133 return m_allocator.getBlockSize();
145 ArenaAllocatorType m_allocator;
#define XALAN_XPATH_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
ReusableArenaBlockType::size_type size_type
string_type * createString(const XalanDOMChar *theString)
Create an XString object from a null-terminated array of characters.
ArenaAllocatorType::size_type size_type
string_type * createString(const XalanDOMChar *theString, XalanSize_t theLength)
Create an XString object from an array of characters.
ReusableArenaAllocator< string_type > ArenaAllocatorType
size_type getBlockCount() const
Get size of an ArenaBlock, that is, the number of objects in each block.
string_type * createString(const XalanDOMString &theString)
Create an XString object from a string.
size_type getBlockSize() const
Get the number of ArenaBlocks currently allocated.
void reset()
Delete all XString objects from allocator.
bool destroy(string_type *theString)
Delete an XString object from allocator.
XStringAllocator(MemoryManager &theManager, size_type theBlockCount)
Construct an instance that will allocate blocks of the specified size.
bool ownsObject(const string_type *theObject)
Determine if an object is owned by the allocator...