Xalan-C++ API Reference 1.12.0
|
#include <xalanc/PlatformSupport/XalanDOMStringReusableAllocator.hpp>
Public Types | |
enum | { eDefaultBlockSize = 32 } |
typedef XalanDOMString | data_type |
typedef data_type::size_type | data_type_size_type |
typedef ReusableArenaAllocator< data_type > | ArenaAllocatorType |
typedef ArenaAllocatorType::size_type | size_type |
Public Member Functions | |
XalanDOMStringReusableAllocator (MemoryManager &theManager, size_type theBlockCount) | |
Construct an instance that will allocate in blocks of the specified size. | |
~XalanDOMStringReusableAllocator () | |
data_type & | create () |
Create a XalanDOMString object. | |
data_type & | create (const char *theString, data_type_size_type theCount=data_type_size_type(data_type::npos)) |
Create a XalanDOMString object. | |
data_type & | create (const data_type &theSource, data_type_size_type theStartPosition=0, data_type_size_type theCount=data_type_size_type(data_type::npos)) |
Copy constructor. | |
data_type & | create (const XalanDOMChar *theString, data_type_size_type theCount=data_type_size_type(data_type::npos)) |
Create a XalanDOMString object. | |
data_type & | create (data_type_size_type theCount, XalanDOMChar theChar) |
Create a XalanDOMString object. | |
bool | destroy (XalanDOMString &theDOMString) |
bool | ownsObject (const data_type *theObject) |
Determine if an object is owned by the allocator... | |
void | reset () |
Delete all instance objects from 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. | |
MemoryManager & | getMemoryManager () |
Get a reference to the MemoryManager instance for this instance. | |
const MemoryManager & | getMemoryManager () const |
Get a reference to the MemoryManager instance for this instance. | |
Definition at line 41 of file XalanDOMStringReusableAllocator.hpp.
Definition at line 54 of file XalanDOMStringReusableAllocator.hpp.
Definition at line 45 of file XalanDOMStringReusableAllocator.hpp.
Definition at line 46 of file XalanDOMStringReusableAllocator.hpp.
Definition at line 57 of file XalanDOMStringReusableAllocator.hpp.
anonymous enum |
Enumerator | |
---|---|
eDefaultBlockSize |
Definition at line 59 of file XalanDOMStringReusableAllocator.hpp.
xalanc::XalanDOMStringReusableAllocator::XalanDOMStringReusableAllocator | ( | MemoryManager & | theManager, |
size_type | theBlockCount ) |
Construct an instance that will allocate in blocks of the specified size.
theBlockSize | The block size. |
xalanc::XalanDOMStringReusableAllocator::~XalanDOMStringReusableAllocator | ( | ) |
data_type & xalanc::XalanDOMStringReusableAllocator::create | ( | ) |
Create a XalanDOMString object.
data_type & xalanc::XalanDOMStringReusableAllocator::create | ( | const char * | theString, |
data_type_size_type | theCount = data_type_size_type(data_type::npos) ) |
Create a XalanDOMString object.
theString | A pointer to a character string |
theCount | The number of characters in the string, or npos if the string is null-terminated. |
data_type & xalanc::XalanDOMStringReusableAllocator::create | ( | const data_type & | theSource, |
data_type_size_type | theStartPosition = 0, | ||
data_type_size_type | theCount = data_type_size_type(data_type::npos) ) |
Copy constructor.
theSource | The source string for the copy |
theStartPosition | The position to start in the source string. |
theCount | The number of characters to copy from the source string. |
data_type & xalanc::XalanDOMStringReusableAllocator::create | ( | const XalanDOMChar * | theString, |
data_type_size_type | theCount = data_type_size_type(data_type::npos) ) |
Create a XalanDOMString object.
theString | A pointer to a wide character string |
theCount | The number of characters in the string, or npos if the string is null-terminated. |
data_type & xalanc::XalanDOMStringReusableAllocator::create | ( | data_type_size_type | theCount, |
XalanDOMChar | theChar ) |
Create a XalanDOMString object.
theCount | the size of the string |
theChar | the character used to initialize the string |
|
inline |
Definition at line 143 of file XalanDOMStringReusableAllocator.hpp.
|
inline |
Get the number of ArenaBlocks currently allocated.
Definition at line 172 of file XalanDOMStringReusableAllocator.hpp.
|
inline |
Get size of an ArenaBlock, that is, the number of objects in each block.
Definition at line 184 of file XalanDOMStringReusableAllocator.hpp.
|
inline |
Get a reference to the MemoryManager instance for this instance.
Definition at line 196 of file XalanDOMStringReusableAllocator.hpp.
|
inline |
Get a reference to the MemoryManager instance for this instance.
Definition at line 208 of file XalanDOMStringReusableAllocator.hpp.
|
inline |
Determine if an object is owned by the allocator...
Definition at line 152 of file XalanDOMStringReusableAllocator.hpp.
|
inline |
Delete all instance objects from allocator.
Definition at line 161 of file XalanDOMStringReusableAllocator.hpp.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Thu Feb 29 2024 06:16:10 for Xalan-C++ API Reference by