Xalan-C++ API Reference 1.12.0
|
#include <xalanc/XSLT/XalanElemEmptyAllocator.hpp>
Public Types | |
typedef ElemEmpty | data_type |
typedef ReusableArenaAllocator< data_type > | ArenaAllocatorType |
typedef ArenaAllocatorType::size_type | size_type |
Public Member Functions | |
XalanElemEmptyAllocator (MemoryManager &theManager, size_type theBlockCount) | |
Construct an instance that will allocate blocks of the specified size. | |
~XalanElemEmptyAllocator () | |
data_type * | create (StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, XalanFileLoc lineNumber, XalanFileLoc columnNumber, const XalanDOMString *elementName=0) |
Construct an instance. | |
data_type * | create (StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const XalanDOMString *elementName=0) |
Construct an instance. | |
bool | destroy (data_type *theObject) |
Destroy an instance previously created. | |
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. | |
Definition at line 41 of file XalanElemEmptyAllocator.hpp.
Definition at line 47 of file XalanElemEmptyAllocator.hpp.
Definition at line 45 of file XalanElemEmptyAllocator.hpp.
Definition at line 49 of file XalanElemEmptyAllocator.hpp.
xalanc::XalanElemEmptyAllocator::XalanElemEmptyAllocator | ( | MemoryManager & | theManager, |
size_type | theBlockCount | ||
) |
Construct an instance that will allocate blocks of the specified size.
theBlockSize | The block size. |
xalanc::XalanElemEmptyAllocator::~XalanElemEmptyAllocator | ( | ) |
data_type * xalanc::XalanElemEmptyAllocator::create | ( | StylesheetConstructionContext & | constructionContext, |
Stylesheet & | stylesheetTree, | ||
const XalanDOMString * | elementName = 0 |
||
) |
Construct an instance.
constructionContext | The current construction context |
stylesheetTree | The stylesheet containing element |
elementName | The name of element. Can be 0. |
data_type * xalanc::XalanElemEmptyAllocator::create | ( | StylesheetConstructionContext & | constructionContext, |
Stylesheet & | stylesheetTree, | ||
XalanFileLoc | lineNumber, | ||
XalanFileLoc | columnNumber, | ||
const XalanDOMString * | elementName = 0 |
||
) |
Construct an instance.
constructionContext | The current construction context |
stylesheetTree | The stylesheet containing element |
lineNumber | The line number in the document |
columnNumber | The column number in the document |
elementName | The name of element. Can be 0. |
Destroy an instance previously created.
theObject | A pointer to the instance to destroy. |
Definition at line 102 of file XalanElemEmptyAllocator.hpp.
|
inline |
Get the number of ArenaBlocks currently allocated.
Definition at line 131 of file XalanElemEmptyAllocator.hpp.
|
inline |
Get size of an ArenaBlock, that is, the number of objects in each block.
Definition at line 143 of file XalanElemEmptyAllocator.hpp.
Determine if an object is owned by the allocator...
Definition at line 111 of file XalanElemEmptyAllocator.hpp.
|
inline |
Delete all objects from the allocator.
Definition at line 120 of file XalanElemEmptyAllocator.hpp.
References xalanc::XalanMemMgrAutoPtr< Type >::reset().
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Mon Feb 5 2024 20:50:04 for Xalan-C++ API Reference by