19#if !defined(XALANELEMEMPTYALLOCATOR_INCLUDE_GUARD_12455133)
20#define XALANELEMEMPTYALLOCATOR_INCLUDE_GUARD_12455133
104 return m_allocator.destroyObject(
theObject);
113 return m_allocator.ownsObject(
theObject);
133 return m_allocator.getBlockCount();
145 return m_allocator.getBlockSize();
157 ArenaAllocatorType m_allocator;
#define XALAN_XSLT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
ReusableArenaBlockType::size_type size_type
This class represents the base stylesheet or an "import" stylesheet.
data_type * create(StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const XalanDOMString *elementName=0)
Construct an instance.
bool destroy(data_type *theObject)
Destroy an instance previously created.
bool ownsObject(const data_type *theObject)
Determine if an object is owned by the allocator...
ReusableArenaAllocator< data_type > ArenaAllocatorType
size_type getBlockCount() const
Get the number of ArenaBlocks currently allocated.
XalanElemEmptyAllocator(MemoryManager &theManager, size_type theBlockCount)
Construct an instance that will allocate blocks of the specified size.
~XalanElemEmptyAllocator()
void reset()
Delete all objects from the allocator.
ArenaAllocatorType::size_type size_type
size_type getBlockSize() const
Get size of an ArenaBlock, that is, the number of objects in each block.
data_type * create(StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, XalanFileLoc lineNumber, XalanFileLoc columnNumber, const XalanDOMString *elementName=0)
Construct an instance.
void reset(MemoryManager *theManager=0, Type *thePointer=0)