Public Types | |
typedef XNumber | number_type |
typedef ReusableArenaAllocator < number_type > | ArenaAllocatorType |
typedef ArenaAllocatorType::size_type | size_type |
Public Member Functions | |
XNumberAllocator (MemoryManagerType &theManager, size_type theBlockCount) | |
Construct an instance that will allocate blocks of the specified size. More... | |
~XNumberAllocator () | |
number_type * | createNumber (double theNumber) |
Create an XNumber object using allocator from a string. More... | |
bool | destroy (number_type *theNumber) |
Delete an XNumber object from allocator. More... | |
bool | ownsObject (const number_type *theObject) |
Determine if an object is owned by the allocator... More... | |
void | reset () |
Delete all XNumber objects from allocator. More... | |
size_type | getBlockCount () const |
Get size of an ArenaBlock, that is, the number of objects in each block. More... | |
size_type | getBlockSize () const |
Get the number of ArenaBlocks currently allocated. More... | |
typedef XNumber XNumberAllocator::number_type |
typedef ArenaAllocatorType::size_type XNumberAllocator::size_type |
XNumberAllocator::XNumberAllocator | ( | MemoryManagerType & | theManager, |
size_type | theBlockCount | ||
) |
Construct an instance that will allocate blocks of the specified size.
theBlockSize | The block size. |
XNumberAllocator::~XNumberAllocator | ( | ) |
number_type* XNumberAllocator::createNumber | ( | double | theNumber) |
Create an XNumber object using allocator from a string.
theString | source number |
bool XNumberAllocator::destroy | ( | number_type * | theNumber) |
Delete an XNumber object from allocator.
size_type XNumberAllocator::getBlockCount | ( | ) | const |
Get size of an ArenaBlock, that is, the number of objects in each block.
size_type XNumberAllocator::getBlockSize | ( | ) | const |
Get the number of ArenaBlocks currently allocated.
bool XNumberAllocator::ownsObject | ( | const number_type * | theObject) |
Determine if an object is owned by the allocator...
void XNumberAllocator::reset | ( | ) |
Delete all XNumber objects from allocator.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSLT Processor Version 1.10 |
|