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

#include <xalanc/XSLT/XalanSourceTreeDocumentFragmentAllocator.hpp>

Public Types

typedef XalanSourceTreeDocumentFragment data_type
 
typedef ReusableArenaAllocator< data_typeArenaAllocatorType
 
typedef ArenaAllocatorType::size_type size_type
 

Public Member Functions

 XalanSourceTreeDocumentFragmentAllocator (MemoryManager &theManager, size_type theBlockCount)
 Construct an instance that will allocate blocks of the specified size. More...
 
 ~XalanSourceTreeDocumentFragmentAllocator ()
 
data_typecreate (XalanSourceTreeDocument &theValue)
 Create a XalanSourceTreeDocumentFragment object. More...
 
data_typecreate (const data_type &theSource)
 Create an XalanSourceTreeDocumentFragment object. More...
 
bool destroy (data_type *theObject)
 Delete an XalanSourceTreeDocumentFragment object from allocator. More...
 
bool ownsObject (const data_type *theObject)
 Determine if an object is owned by the allocator... More...
 
void reset ()
 Delete all XalanSourceTreeDocumentFragment objects from 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 XalanSourceTreeDocumentFragmentAllocator.hpp.

Member Typedef Documentation

◆ ArenaAllocatorType

Definition at line 47 of file XalanSourceTreeDocumentFragmentAllocator.hpp.

◆ data_type

Definition at line 45 of file XalanSourceTreeDocumentFragmentAllocator.hpp.

◆ size_type

Definition at line 48 of file XalanSourceTreeDocumentFragmentAllocator.hpp.

Constructor & Destructor Documentation

◆ XalanSourceTreeDocumentFragmentAllocator()

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

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

Parameters
theBlockSizeThe block size.

◆ ~XalanSourceTreeDocumentFragmentAllocator()

xalanc::XalanSourceTreeDocumentFragmentAllocator::~XalanSourceTreeDocumentFragmentAllocator ( )

Member Function Documentation

◆ create() [1/2]

data_type* xalanc::XalanSourceTreeDocumentFragmentAllocator::create ( const data_type theSource)

Create an XalanSourceTreeDocumentFragment object.

Parameters
theSourcesource instance
Returns
pointer to a node

◆ create() [2/2]

data_type* xalanc::XalanSourceTreeDocumentFragmentAllocator::create ( XalanSourceTreeDocument theValue)

Create a XalanSourceTreeDocumentFragment object.

Parameters
theValueThe constructor parameter
Returns
pointer to a node

◆ destroy()

bool xalanc::XalanSourceTreeDocumentFragmentAllocator::destroy ( data_type theObject)

Delete an XalanSourceTreeDocumentFragment object from allocator.


◆ getBlockCount()

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

Get the number of ArenaBlocks currently allocated.

Returns
The number of blocks.

Definition at line 106 of file XalanSourceTreeDocumentFragmentAllocator.hpp.

◆ getBlockSize()

size_type xalanc::XalanSourceTreeDocumentFragmentAllocator::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 118 of file XalanSourceTreeDocumentFragmentAllocator.hpp.

◆ ownsObject()

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

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

Definition at line 89 of file XalanSourceTreeDocumentFragmentAllocator.hpp.

◆ reset()

void xalanc::XalanSourceTreeDocumentFragmentAllocator::reset ( )

Delete all XalanSourceTreeDocumentFragment objects from allocator.



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