Xalan-C++ API Reference 1.12.0
xalanc::XalanSourceTreeElementAAllocator Class Reference

#include <xalanc/XalanSourceTree/XalanSourceTreeElementAAllocator.hpp>

Public Types

typedef XalanSourceTreeElementA ObjectType
 
typedef ObjectType::IndexType IndexType
 
typedef ArenaAllocator< ObjectTypeArenaAllocatorType
 
typedef ArenaAllocatorType::size_type size_type
 

Public Member Functions

 XalanSourceTreeElementAAllocator (MemoryManager &theManager, size_type theBlockCount)
 Construct an instance that will allocate blocks of the specified size.
 
 ~XalanSourceTreeElementAAllocator ()
 
ObjectTypecreate (const XalanDOMString &theTagName, 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.
 
size_type getBlockCount () const
 Get size of an ArenaBlock, that is, the number of objects in each block.
 
size_type getBlockSize () const
 Get the number of ArenaBlocks currently allocated.
 

Detailed Description

Definition at line 40 of file XalanSourceTreeElementAAllocator.hpp.

Member Typedef Documentation

◆ ArenaAllocatorType

◆ IndexType

◆ ObjectType

◆ size_type

Constructor & Destructor Documentation

◆ XalanSourceTreeElementAAllocator()

xalanc::XalanSourceTreeElementAAllocator::XalanSourceTreeElementAAllocator ( MemoryManager & theManager,
size_type theBlockCount )

Construct an instance that will allocate blocks of the specified size.

Parameters
theBlockSizeThe block size.

◆ ~XalanSourceTreeElementAAllocator()

xalanc::XalanSourceTreeElementAAllocator::~XalanSourceTreeElementAAllocator ( )

Member Function Documentation

◆ create()

ObjectType * xalanc::XalanSourceTreeElementAAllocator::create ( const XalanDOMString & theTagName,
XalanSourceTreeDocument * theOwnerDocument,
XalanSourceTreeAttr ** theAttributes,
XalanSize_t theAttributeCount,
XalanNode * theParentNode = 0,
XalanNode * thePreviousSibling = 0,
XalanNode * theNextSibling = 0,
IndexType theIndex = 0 )

Create an instance.

Parameters
theTagNameThe tag name of the element
theOwnerDocumentThe document that owns the instance
theAttributesAn array of pointers to the attribute instances for the element
theAttributeCountThe number of attributes.
theParentNodeThe parent node, if any.
thePreviousSiblingThe previous sibling, if any.
theNextSiblingThe next sibling, if any.
theIndexThe document-order index of the node.
Returns
pointer to the instance

◆ getBlockCount()

size_type xalanc::XalanSourceTreeElementAAllocator::getBlockCount ( ) const
inline

Get size of an ArenaBlock, that is, the number of objects in each block.

Returns
The size of the block

Definition at line 108 of file XalanSourceTreeElementAAllocator.hpp.

◆ getBlockSize()

size_type xalanc::XalanSourceTreeElementAAllocator::getBlockSize ( ) const
inline

Get the number of ArenaBlocks currently allocated.

Returns
The number of blocks.

Definition at line 119 of file XalanSourceTreeElementAAllocator.hpp.

◆ reset()

void xalanc::XalanSourceTreeElementAAllocator::reset ( )

Delete all objects from allocator.



The documentation for this class was generated from the following file: