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

#include <xalanc/XSLT/XalanAVTAllocator.hpp>

Public Types

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

Public Member Functions

 XalanAVTAllocator (MemoryManager &theManager, size_type theBlockCount)
 Construct an instance that will allocate blocks of the specified size. More...
 
 ~XalanAVTAllocator ()
 
data_typecreate (StylesheetConstructionContext &constructionContext, const Locator *locator, const XalanDOMChar *name, const XalanDOMChar *stringedValue, const PrefixResolver &resolver)
 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 XalanAVTAllocator.hpp.

Member Typedef Documentation

◆ ArenaAllocatorType

Definition at line 52 of file XalanAVTAllocator.hpp.

◆ data_type

Definition at line 45 of file XalanAVTAllocator.hpp.

◆ size_type

Definition at line 55 of file XalanAVTAllocator.hpp.

Constructor & Destructor Documentation

◆ XalanAVTAllocator()

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

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

Parameters
theBlockSizeThe block size.

◆ ~XalanAVTAllocator()

xalanc::XalanAVTAllocator::~XalanAVTAllocator ( )

Member Function Documentation

◆ create()

data_type* xalanc::XalanAVTAllocator::create ( StylesheetConstructionContext constructionContext,
const Locator *  locator,
const XalanDOMChar *  name,
const XalanDOMChar *  stringedValue,
const PrefixResolver resolver 
)

Create an instance.

Parameters
constructionContextcontext for construction of AVT
locatorthe Locator for the AVT. May be null.
namename of AVT
stringedValuestring value to parse
resolvervresolverfor namespace resolution
Returns
A pointer to the new instance.

◆ getBlockCount()

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

Get the number of ArenaBlocks currently allocated.

Returns
The number of blocks.

Definition at line 109 of file XalanAVTAllocator.hpp.

◆ getBlockSize()

size_type xalanc::XalanAVTAllocator::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 121 of file XalanAVTAllocator.hpp.

◆ ownsObject()

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

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

Definition at line 89 of file XalanAVTAllocator.hpp.

◆ reset()

void xalanc::XalanAVTAllocator::reset ( )
inline

Delete all objects from the allocator.


Definition at line 98 of file XalanAVTAllocator.hpp.


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