19 #if !defined(XALANSOURCETREEELEMENTANSALLOCATOR_INCLUDE_GUARD_12455133)
20 #define XALANSOURCETREEELEMENTANSALLOCATOR_INCLUDE_GUARD_12455133
48 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
65 MemoryManager& theManager,
95 XalanSize_t theAttributeCount,
116 return m_allocator.getBlockCount();
127 return m_allocator.getBlockSize();
139 ArenaAllocatorType m_allocator;
#define XALAN_XALANSOURCETREE_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
ArenaBlockType::size_type size_type
XalanSourceTreeElementANS ObjectType
size_type getBlockSize() const
Get the number of ArenaBlocks currently allocated.
ObjectType * create(const XalanDOMString &theTagName, const XalanDOMString &theLocalName, const XalanDOMString &theNamespaceURI, const XalanDOMString &thePrefix, XalanSourceTreeDocument *theOwnerDocument, XalanSourceTreeAttr **theAttributes, XalanSize_t theAttributeCount, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0, IndexType theIndex=0)
Create an instance.
void reset()
Delete all objects from allocator.
ObjectType::IndexType IndexType
ArenaAllocator< ObjectType > ArenaAllocatorType
size_type getBlockCount() const
Get size of an ArenaBlock, that is, the number of objects in each block.
XalanSourceTreeElementANSAllocator(MemoryManager &theManager, size_type theBlockCount)
Construct an instance that will allocate blocks of the specified size.
ArenaAllocatorType::size_type size_type
~XalanSourceTreeElementANSAllocator()