 |
Xalan-C++ API Reference
1.12.0
|
Go to the documentation of this file.
19 #if !defined(XTOKENNUMBERADAPTERALLOCATOR_INCLUDE_GUARD_1357924680)
20 #define XTOKENNUMBERADAPTERALLOCATOR_INCLUDE_GUARD_1357924680
56 MemoryManager& theMemoryManager,
83 return m_allocator.ownsObject(theObject);
101 return m_allocator.getBlockCount();
112 return m_allocator.getBlockSize();
120 return m_allocator.getMemoryManager();
124 XTokenNumberAdapterAllocator(
const XTokenNumberAdapterAllocator&);
126 XTokenNumberAdapterAllocator&
127 operator=(
const XTokenNumberAdapterAllocator&);
130 ArenaAllocatorType m_allocator;
139 #endif // XTOKENNUMBERADAPTERALLOCATOR_INCLUDE_GUARD_1357924680
~XTokenNumberAdapterAllocator()
size_type getBlockCount() const
Get size of an ArenaBlock, that is, the number of objects in each block.
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
ReusableArenaBlockType::size_type size_type
void reset()
Delete all XStringAdapter objects from allocator.
bool ownsObject(const object_type *theObject)
Determine if an object is owned by the allocator...
#define XALAN_XPATH_EXPORT
ReusableArenaAllocator< object_type > ArenaAllocatorType
XTokenNumberAdapter object_type
XTokenNumberAdapterAllocator(MemoryManager &theMemoryManager, size_type theBlockCount)
Construct an instance that will allocate blocks of the specified size.
bool destroy(object_type *theObject)
Delete an XStringAdapter object from allocator.
size_type getBlockSize() const
Get the number of ArenaBlocks currently allocated.
object_type * create(const XToken &theXToken)
Create an instance from an XToken.
ArenaAllocatorType::size_type size_type