 |
Xalan-C++ API Reference
1.12.0
|
Go to the documentation of this file.
19 #if !defined(XALANDOMSTRINGALLOCATOR_INCLUDE_GUARD_12455133)
20 #define XALANDOMSTRINGALLOCATOR_INCLUDE_GUARD_12455133
48 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
59 enum { eDefaultBlockSize = 32 };
89 const char* theString,
90 #
if defined(_MSC_VER) && (_MSC_VER <= 1300)
122 const XalanDOMChar* theString,
136 XalanDOMChar theChar);
144 return m_allocator.ownsObject(theObject);
164 return m_allocator.getBlockCount();
176 return m_allocator.getBlockSize();
188 return m_allocator.getMemoryManager();
200 return m_allocator.getMemoryManager();
212 ArenaAllocatorType m_allocator;
221 #endif // XALANDOMSTRINGALLOCATOR_INCLUDE_GUARD_12455133
ArenaBlockType::size_type size_type
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
data_type * create(const XalanDOMChar *theString, data_type_size_type theCount=data_type_size_type(data_type::npos))
Create a XalanDOMString object.
bool ownsObject(const data_type *theObject)
Determine if an object is owned by the allocator...
data_type * create(const char *theString, data_type_size_type theCount=data_type_size_type(data_type::npos))
Create a XalanDOMString object.
ArenaAllocator< data_type > ArenaAllocatorType
XalanDOMStringAllocator(MemoryManager &theManager, size_type theBlockCount)
Construct an instance that will allocate in blocks of the specified size.
MemoryManager & getMemoryManager()
Get a reference to the MemoryManager instance for this instance.
ArenaAllocatorType::size_type size_type
void reset()
Delete all instance objects from allocator.
data_type * create(data_type_size_type theCount, XalanDOMChar theChar)
Create a XalanDOMString object.
~XalanDOMStringAllocator()
data_type::size_type data_type_size_type
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()
Create a XalanDOMString object.
const MemoryManager & getMemoryManager() const
Get a reference to the MemoryManager instance for this instance.
size_type getBlockSize() const
Get size of an ArenaBlock, that is, the number of objects in each block.
size_type getBlockCount() const
Get the number of ArenaBlocks currently allocated.