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

#include <xalanc/XPath/XPathAllocator.hpp>

Public Types

typedef XPath object_type
 
typedef ArenaAllocator< object_typeArenaAllocatorType
 
typedef ArenaAllocatorType::size_type size_type
 

Public Member Functions

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

Detailed Description

Definition at line 41 of file XPathAllocator.hpp.

Member Typedef Documentation

◆ ArenaAllocatorType

Definition at line 53 of file XPathAllocator.hpp.

◆ object_type

Definition at line 45 of file XPathAllocator.hpp.

◆ size_type

Definition at line 56 of file XPathAllocator.hpp.

Constructor & Destructor Documentation

◆ XPathAllocator()

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

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

Parameters
theBlockSizeThe block size.

◆ ~XPathAllocator()

xalanc::XPathAllocator::~XPathAllocator ( )

Member Function Documentation

◆ create()

object_type* xalanc::XPathAllocator::create ( )

Create an XPath object using the allocator.

Returns
a pointer to an XPath

◆ getBlockCount()

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

Get the number of objects in each block.

Returns
The size of the block

Definition at line 96 of file XPathAllocator.hpp.

◆ getBlockSize()

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

Get the number of blocks currently allocated.

Returns
The number of blocks.

Definition at line 107 of file XPathAllocator.hpp.

◆ ownsObject()

bool xalanc::XPathAllocator::ownsObject ( const object_type theObject)
inline

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

Definition at line 79 of file XPathAllocator.hpp.

◆ reset()

void xalanc::XPathAllocator::reset ( )

Delete all XPath objects allocated.



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