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

#include <xalanc/XSLT/XalanElemAttributeAllocator.hpp>

Public Types

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

Public Member Functions

 XalanElemAttributeAllocator (MemoryManager &theManager, size_type theBlockCount)
 Construct an instance that will allocate blocks of the specified size.
 
 ~XalanElemAttributeAllocator ()
 
data_typecreate (StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const AttributeListType &atts, XalanFileLoc lineNumber, XalanFileLoc columnNumber)
 Construct an instance.
 
bool ownsObject (const data_type *theObject)
 Determine if an object is owned by the allocator...
 
void reset ()
 Delete all objects from the allocator.
 
size_type getBlockCount () const
 Get the number of ArenaBlocks currently allocated.
 
size_type getBlockSize () const
 Get size of an ArenaBlock, that is, the number of objects in each block.
 

Detailed Description

Definition at line 41 of file XalanElemAttributeAllocator.hpp.

Member Typedef Documentation

◆ ArenaAllocatorType

Definition at line 52 of file XalanElemAttributeAllocator.hpp.

◆ data_type

Definition at line 45 of file XalanElemAttributeAllocator.hpp.

◆ size_type

Definition at line 55 of file XalanElemAttributeAllocator.hpp.

Constructor & Destructor Documentation

◆ XalanElemAttributeAllocator()

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

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

Parameters
theBlockSizeThe block size.

◆ ~XalanElemAttributeAllocator()

xalanc::XalanElemAttributeAllocator::~XalanElemAttributeAllocator ( )

Member Function Documentation

◆ create()

data_type * xalanc::XalanElemAttributeAllocator::create ( StylesheetConstructionContext constructionContext,
Stylesheet stylesheetTree,
const AttributeListType atts,
XalanFileLoc  lineNumber,
XalanFileLoc  columnNumber 
)

Construct an instance.

Parameters
constructionContextcontext for construction of object
stylesheetTreestylesheet containing element
attslist of attributes for element
lineNumberline number in document
columnNumbercolumn number in document
Returns
A pointer to the new instance.

◆ getBlockCount()

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

Get the number of ArenaBlocks currently allocated.

Returns
The number of blocks.

Definition at line 111 of file XalanElemAttributeAllocator.hpp.

◆ getBlockSize()

size_type xalanc::XalanElemAttributeAllocator::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 123 of file XalanElemAttributeAllocator.hpp.

◆ ownsObject()

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

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

Definition at line 91 of file XalanElemAttributeAllocator.hpp.

◆ reset()

void xalanc::XalanElemAttributeAllocator::reset ( )
inline

Delete all objects from the allocator.


Definition at line 100 of file XalanElemAttributeAllocator.hpp.

References xalanc::XalanMemMgrAutoPtr< Type >::reset().


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