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

#include <xalanc/XSLT/XalanAVTPartSimpleAllocator.hpp>

Public Types

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

Public Member Functions

 XalanAVTPartSimpleAllocator (MemoryManager &theManager, size_type theBlockCount)
 Construct an instance that will allocate blocks of the specified size. More...
 
 ~XalanAVTPartSimpleAllocator ()
 
data_typecreate (StylesheetConstructionContext &constructionContext, const XalanDOMChar *val, XalanDOMString::size_type len)
 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 XalanAVTPartSimpleAllocator.hpp.

Member Typedef Documentation

◆ ArenaAllocatorType

Definition at line 52 of file XalanAVTPartSimpleAllocator.hpp.

◆ data_type

Definition at line 45 of file XalanAVTPartSimpleAllocator.hpp.

◆ size_type

Definition at line 55 of file XalanAVTPartSimpleAllocator.hpp.

Constructor & Destructor Documentation

◆ XalanAVTPartSimpleAllocator()

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

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

Parameters
theBlockSizeThe block size.

◆ ~XalanAVTPartSimpleAllocator()

xalanc::XalanAVTPartSimpleAllocator::~XalanAVTPartSimpleAllocator ( )

Member Function Documentation

◆ create()

data_type* xalanc::XalanAVTPartSimpleAllocator::create ( StylesheetConstructionContext constructionContext,
const XalanDOMChar *  val,
XalanDOMString::size_type  len 
)

Create an instance.

Parameters
constructionContextcontext when object constructed
valA pure string section of an AVT
lenThe length of val
Returns
A pointer to the new instance.

◆ getBlockCount()

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

Get the number of ArenaBlocks currently allocated.

Returns
The number of blocks.

Definition at line 105 of file XalanAVTPartSimpleAllocator.hpp.

◆ getBlockSize()

size_type xalanc::XalanAVTPartSimpleAllocator::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 117 of file XalanAVTPartSimpleAllocator.hpp.

◆ ownsObject()

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

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

Definition at line 85 of file XalanAVTPartSimpleAllocator.hpp.

◆ reset()

void xalanc::XalanAVTPartSimpleAllocator::reset ( )
inline

Delete all objects from the allocator.


Definition at line 94 of file XalanAVTPartSimpleAllocator.hpp.


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