Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Types | Public Member Functions

XalanDOMStringReusableAllocator Class Reference

#include <XalanDOMStringReusableAllocator.hpp>

Collaboration diagram for XalanDOMStringReusableAllocator:
Collaboration graph
[legend]

List of all members.

Public Types

Public Member Functions


Detailed Description

Definition at line 41 of file XalanDOMStringReusableAllocator.hpp.


Member Typedef Documentation

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.


Member Enumeration Documentation

anonymous enum
Enumerator:
eDefaultBlockSize 

Definition at line 59 of file XalanDOMStringReusableAllocator.hpp.


Constructor & Destructor Documentation

XalanDOMStringReusableAllocator::XalanDOMStringReusableAllocator ( MemoryManager &  theManager,
size_type  theBlockCount 
)

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

Parameters:
theBlockSize The block size.
XalanDOMStringReusableAllocator::~XalanDOMStringReusableAllocator (  ) 

Member Function Documentation

data_type& XalanDOMStringReusableAllocator::create (  ) 

Create a XalanDOMString object.

Returns:
reference to the new instance
data_type& XalanDOMStringReusableAllocator::create ( const char *  theString,
data_type_size_type  theCount = data_type_size_type(data_type::npos) 
)

Create a XalanDOMString object.

Parameters:
theString A pointer to a character string
theCount The number of characters in the string, or npos if the string is null-terminated.
Returns:
reference to the new instance
data_type& XalanDOMStringReusableAllocator::create ( const XalanDOMChar *  theString,
data_type_size_type  theCount = data_type_size_type(data_type::npos) 
)

Create a XalanDOMString object.

Parameters:
theString A pointer to a wide character string
theCount The number of characters in the string, or npos if the string is null-terminated.
Returns:
reference to the new instance
data_type& XalanDOMStringReusableAllocator::create ( data_type_size_type  theCount,
XalanDOMChar  theChar 
)

Create a XalanDOMString object.

Parameters:
theCount the size of the string
theChar the character used to initialize the string
Returns:
reference to the new instance
data_type& 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.

Parameters:
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.
Returns:
reference to the new instance
bool XalanDOMStringReusableAllocator::destroy ( XalanDOMString theDOMString  )  [inline]

Definition at line 143 of file XalanDOMStringReusableAllocator.hpp.

size_type XalanDOMStringReusableAllocator::getBlockCount (  )  const [inline]

Get the number of ArenaBlocks currently allocated.

Returns:
The number of blocks.

Definition at line 172 of file XalanDOMStringReusableAllocator.hpp.

size_type XalanDOMStringReusableAllocator::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 184 of file XalanDOMStringReusableAllocator.hpp.

MemoryManager& XalanDOMStringReusableAllocator::getMemoryManager (  )  [inline]

Get a reference to the MemoryManager instance for this instance.

Returns:
A reference to the MemoryManager instance.

Definition at line 196 of file XalanDOMStringReusableAllocator.hpp.

const MemoryManager& XalanDOMStringReusableAllocator::getMemoryManager (  )  const [inline]

Get a reference to the MemoryManager instance for this instance.

Returns:
A reference to the MemoryManager instance.

Definition at line 208 of file XalanDOMStringReusableAllocator.hpp.

bool XalanDOMStringReusableAllocator::ownsObject ( const data_type theObject  )  [inline]

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

Definition at line 152 of file XalanDOMStringReusableAllocator.hpp.

void XalanDOMStringReusableAllocator::reset (  )  [inline]

Delete all instance objects from allocator.

Definition at line 161 of file XalanDOMStringReusableAllocator.hpp.


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

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo