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

#include <xalanc/XSLT/XalanElemTextLiteralAllocator.hpp>

Public Types

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

Public Member Functions

 XalanElemTextLiteralAllocator (MemoryManager &theManager, size_type theBlockCount)
 Construct an instance that will allocate blocks of the specified size. More...
 
 ~XalanElemTextLiteralAllocator ()
 
data_typecreate (StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, XalanFileLoc lineNumber, XalanFileLoc columnNumber, const XalanDOMChar *ch, XalanDOMString::size_type start, XalanDOMString::size_type length, bool preserveSpace, bool disableOutputEscaping)
 Construct 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 XalanElemTextLiteralAllocator.hpp.

Member Typedef Documentation

◆ ArenaAllocatorType

Definition at line 52 of file XalanElemTextLiteralAllocator.hpp.

◆ data_type

Definition at line 45 of file XalanElemTextLiteralAllocator.hpp.

◆ size_type

Definition at line 55 of file XalanElemTextLiteralAllocator.hpp.

Constructor & Destructor Documentation

◆ XalanElemTextLiteralAllocator()

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

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

Parameters
theBlockSizeThe block size.

◆ ~XalanElemTextLiteralAllocator()

xalanc::XalanElemTextLiteralAllocator::~XalanElemTextLiteralAllocator ( )

Member Function Documentation

◆ create()

data_type* xalanc::XalanElemTextLiteralAllocator::create ( StylesheetConstructionContext constructionContext,
Stylesheet stylesheetTree,
XalanFileLoc  lineNumber,
XalanFileLoc  columnNumber,
const XalanDOMChar *  ch,
XalanDOMString::size_type  start,
XalanDOMString::size_type  length,
bool  preserveSpace,
bool  disableOutputEscaping 
)

Construct an instance.

Parameters
constructionContextcontext for construction of object
stylesheetTreestylesheet containing element
lineNumberline number in document
columnNumbercolumn number in document
chpointer to character string for element
startstarting offset of element
lengthnumber of characters in element
preserveSpacetrue is space should be preserved
disableOutputEscapingtrue if output escaping should be disabled
Returns
A pointer to the new instance.

◆ getBlockCount()

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

Get the number of ArenaBlocks currently allocated.

Returns
The number of blocks.

Definition at line 119 of file XalanElemTextLiteralAllocator.hpp.

◆ getBlockSize()

size_type xalanc::XalanElemTextLiteralAllocator::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 131 of file XalanElemTextLiteralAllocator.hpp.

◆ ownsObject()

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

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

Definition at line 99 of file XalanElemTextLiteralAllocator.hpp.

◆ reset()

void xalanc::XalanElemTextLiteralAllocator::reset ( )
inline

Delete all objects from the allocator.


Definition at line 108 of file XalanElemTextLiteralAllocator.hpp.


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