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. More... | |
~XalanElemEmptyAllocator () | |
data_type * | create (StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, XalanFileLoc lineNumber, XalanFileLoc columnNumber, const XalanDOMString *elementName=0) |
Construct an instance. More... | |
data_type * | create (StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const XalanDOMString *elementName=0) |
Construct an instance. More... | |
bool | destroy (data_type *theObject) |
Destroy an instance previously created. 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... | |
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. |
|
inline |
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.
|
inline |
Determine if an object is owned by the allocator...
Definition at line 111 of file XalanElemEmptyAllocator.hpp.
|
inline |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:34 for Xalan-C++ API Reference by 1.8.17