17 #if !defined(XALANDOMSTRINGALLOCATOR_INCLUDE_GUARD_12455133)
18 #define XALANDOMSTRINGALLOCATOR_INCLUDE_GUARD_12455133
35 XALAN_CPP_NAMESPACE_BEGIN
46 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
57 enum { eDefaultBlockSize = 32 };
87 const char* theString,
88 #
if defined(_MSC_VER) && (_MSC_VER <= 1300)
90 data_type_size_type theCount = data_type_size_type(-1));
92 data_type_size_type theCount = data_type_size_type(data_type::npos));
106 const data_type& theSource,
107 data_type_size_type theStartPosition = 0,
108 data_type_size_type theCount = data_type_size_type(data_type::npos));
120 const XalanDOMChar* theString,
121 data_type_size_type theCount = data_type_size_type(data_type::npos));
133 data_type_size_type theCount,
134 XalanDOMChar theChar);
142 return m_allocator.ownsObject(theObject);
162 return m_allocator.getBlockCount();
174 return m_allocator.getBlockSize();
186 return m_allocator.getMemoryManager();
198 return m_allocator.getMemoryManager();
210 ArenaAllocatorType m_allocator;
215 XALAN_CPP_NAMESPACE_END
219 #endif // XALANDOMSTRINGALLOCATOR_INCLUDE_GUARD_12455133
size_type getBlockCount() const
Get the number of ArenaBlocks currently allocated.
Definition: XalanDOMStringAllocator.hpp:160
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
Definition: ArenaBlock.hpp:36
size_type getBlockSize() const
Get size of an ArenaBlock, that is, the number of objects in each block.
Definition: XalanDOMStringAllocator.hpp:172
Definition: ArenaAllocator.hpp:45
const MemoryManagerType & getMemoryManager() const
Get a reference to the MemoryManagerType instance for this instance.
Definition: XalanDOMStringAllocator.hpp:196
void reset()
Delete all instance objects from allocator.
Definition: XalanDOMStringAllocator.hpp:149
data_type::size_type data_type_size_type
Definition: XalanDOMStringAllocator.hpp:44
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
Definition: XalanDOMStringAllocator.hpp:39
MemoryManagerType & getMemoryManager()
Get a reference to the MemoryManagerType instance for this instance.
Definition: XalanDOMStringAllocator.hpp:184
ArenaAllocatorType::size_type size_type
Definition: XalanDOMStringAllocator.hpp:55
Definition: XalanDOMString.hpp:42
XalanDOMString data_type
Definition: XalanDOMStringAllocator.hpp:43
bool ownsObject(const data_type *theObject)
Determine if an object is owned by the allocator...
Definition: XalanDOMStringAllocator.hpp:140
unsigned int size_type
Definition: XalanDOMString.hpp:53
ArenaBlockType::size_type size_type
Definition: ArenaAllocator.hpp:53
ArenaAllocator< data_type > ArenaAllocatorType
Definition: XalanDOMStringAllocator.hpp:52