 |
Xalan-C++ API Reference
1.12.0
|
Go to the documentation of this file.
19 #if !defined(XALANELEMEMPTYALLOCATOR_INCLUDE_GUARD_12455133)
20 #define XALANELEMEMPTYALLOCATOR_INCLUDE_GUARD_12455133
57 MemoryManager& theManager,
77 XalanFileLoc lineNumber,
78 XalanFileLoc columnNumber,
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;
166 #endif // XALANELEMEMPTYALLOCATOR_INCLUDE_GUARD_12455133
~XalanElemEmptyAllocator()
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
void reset()
Delete all objects from the allocator.
data_type * create(StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const XalanDOMString *elementName=0)
Construct an instance.
ReusableArenaBlockType::size_type size_type
#define XALAN_XSLT_EXPORT
ArenaAllocatorType::size_type size_type
XalanElemEmptyAllocator(MemoryManager &theManager, size_type theBlockCount)
Construct an instance that will allocate blocks of the specified size.
ReusableArenaAllocator< data_type > ArenaAllocatorType
data_type * create(StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, XalanFileLoc lineNumber, XalanFileLoc columnNumber, const XalanDOMString *elementName=0)
Construct an instance.
bool destroy(data_type *theObject)
Destroy an instance previously created.
size_type getBlockSize() const
Get size of an ArenaBlock, that is, the number of objects in each block.
bool ownsObject(const data_type *theObject)
Determine if an object is owned by the allocator...
This class represents the base stylesheet or an "import" stylesheet.
size_type getBlockCount() const
Get the number of ArenaBlocks currently allocated.