Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | List of all members
xalanc::XalanAVTPartXPathAllocator Class Reference

#include <xalanc/XSLT/XalanAVTPartXPathAllocator.hpp>

Public Types

typedef AVTPartXPath data_type
 
typedef ArenaAllocator< data_typeArenaAllocatorType
 
typedef ArenaAllocatorType::size_type size_type
 

Public Member Functions

 XalanAVTPartXPathAllocator (MemoryManager &theManager, size_type theBlockCount)
 Construct an instance that will allocate blocks of the specified size. More...
 
 ~XalanAVTPartXPathAllocator ()
 
data_typecreate (const XPath *xpath)
 Create an instance. More...
 
bool ownsObject (const data_type *theObject)
 Determine if an object is owned by the allocator... More...
 
void reset ()
 Delete all objects from the allocator. More...
 
size_type getBlockCount () const
 Get the number of ArenaBlocks currently allocated. More...
 
size_type getBlockSize () const
 Get size of an ArenaBlock, that is, the number of objects in each block. More...
 

Detailed Description

Definition at line 41 of file XalanAVTPartXPathAllocator.hpp.

Member Typedef Documentation

◆ ArenaAllocatorType

Definition at line 52 of file XalanAVTPartXPathAllocator.hpp.

◆ data_type

Definition at line 45 of file XalanAVTPartXPathAllocator.hpp.

◆ size_type

Definition at line 55 of file XalanAVTPartXPathAllocator.hpp.

Constructor & Destructor Documentation

◆ XalanAVTPartXPathAllocator()

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

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

Parameters
theBlockSizeThe block size.

◆ ~XalanAVTPartXPathAllocator()

xalanc::XalanAVTPartXPathAllocator::~XalanAVTPartXPathAllocator ( )

Member Function Documentation

◆ create()

data_type* xalanc::XalanAVTPartXPathAllocator::create ( const XPath xpath)

Create an instance.

Parameters
xpathXPath to evaluate
Returns
A pointer to the new instance.

◆ getBlockCount()

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

Get the number of ArenaBlocks currently allocated.

Returns
The number of blocks.

Definition at line 100 of file XalanAVTPartXPathAllocator.hpp.

◆ getBlockSize()

size_type xalanc::XalanAVTPartXPathAllocator::getBlockSize ( ) 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 112 of file XalanAVTPartXPathAllocator.hpp.

◆ ownsObject()

bool xalanc::XalanAVTPartXPathAllocator::ownsObject ( const data_type theObject)
inline

Determine if an object is owned by the allocator...

Definition at line 80 of file XalanAVTPartXPathAllocator.hpp.

◆ reset()

void xalanc::XalanAVTPartXPathAllocator::reset ( )
inline

Delete all objects from the allocator.


Definition at line 89 of file XalanAVTPartXPathAllocator.hpp.


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