17 #if !defined(XALANDOMSTRINGREUSABLEALLOCATOR_INCLUDE_GUARD_12455133)
18 #define XALANDOMSTRINGREUSABLEALLOCATOR_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);
143 return m_allocator.destroyObject(&theDOMString);
152 return m_allocator.ownsObject(theObject);
172 return m_allocator.getBlockCount();
184 return m_allocator.getBlockSize();
196 return m_allocator.getMemoryManager();
208 return m_allocator.getMemoryManager();
220 ArenaAllocatorType m_allocator;
225 XALAN_CPP_NAMESPACE_END
229 #endif // XALANDOMSTRINGREUSABLEALLOCATOR_INCLUDE_GUARD_12455133
ReusableArenaAllocator< data_type > ArenaAllocatorType
Definition: XalanDOMStringReusableAllocator.hpp:52
void reset()
Delete all instance objects from allocator.
Definition: XalanDOMStringReusableAllocator.hpp:159
size_type getBlockSize() const
Get size of an ArenaBlock, that is, the number of objects in each block.
Definition: XalanDOMStringReusableAllocator.hpp:182
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
MemoryManagerType & getMemoryManager()
Get a reference to the MemoryManagerType instance for this instance.
Definition: XalanDOMStringReusableAllocator.hpp:194
size_type getBlockCount() const
Get the number of ArenaBlocks currently allocated.
Definition: XalanDOMStringReusableAllocator.hpp:170
ArenaAllocatorType::size_type size_type
Definition: XalanDOMStringReusableAllocator.hpp:55
data_type::size_type data_type_size_type
Definition: XalanDOMStringReusableAllocator.hpp:44
XalanDOMString data_type
Definition: XalanDOMStringReusableAllocator.hpp:43
const MemoryManagerType & getMemoryManager() const
Get a reference to the MemoryManagerType instance for this instance.
Definition: XalanDOMStringReusableAllocator.hpp:206
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
Definition: XalanDOMStringReusableAllocator.hpp:39
bool ownsObject(const data_type *theObject)
Determine if an object is owned by the allocator...
Definition: XalanDOMStringReusableAllocator.hpp:150
bool destroy(XalanDOMString &theDOMString)
Definition: XalanDOMStringReusableAllocator.hpp:141
Definition: XalanDOMString.hpp:42
unsigned int size_type
Definition: XalanDOMString.hpp:53