19 #if !defined(XALANSOURCETREEDOCUMENTALLOCATOR_INCLUDE_GUARD_12455133)
20 #define XALANSOURCETREEDOCUMENTALLOCATOR_INCLUDE_GUARD_12455133
50 enum { eDefaultAttributeAllocatorBlockSize = XalanSourceTreeDocument::eDefaultAttributeAllocatorBlockSize,
51 eDefaultAttributeNSAllocatorBlockSize = XalanSourceTreeDocument::eDefaultAttributeNSAllocatorBlockSize,
52 eDefaultCommentAllocatorBlockSize = XalanSourceTreeDocument::eDefaultCommentAllocatorBlockSize,
53 eDefaultElementAllocatorBlockSize = XalanSourceTreeDocument::eDefaultElementAllocatorBlockSize,
54 eDefaultElementNSAllocatorBlockSize = XalanSourceTreeDocument::eDefaultElementNSAllocatorBlockSize,
55 eDefaultPIAllocatorBlockSize = XalanSourceTreeDocument::eDefaultPIAllocatorBlockSize,
56 eDefaultTextAllocatorBlockSize = XalanSourceTreeDocument::eDefaultTextAllocatorBlockSize,
57 eDefaultTextIWSAllocatorBlockSize = XalanSourceTreeDocument::eDefaultTextIWSAllocatorBlockSize,
58 eDefaultNamesStringPoolBlockSize = XalanSourceTreeDocument::eDefaultNamesStringPoolBlockSize,
59 eDefaultNamesStringPoolBucketCount = XalanSourceTreeDocument::eDefaultNamesStringPoolBucketCount,
60 eDefaultNamesStringPoolBucketSize = XalanSourceTreeDocument::eDefaultNamesStringPoolBucketSize,
61 eDefaultValuesStringPoolBlockSize = XalanSourceTreeDocument::eDefaultValuesStringPoolBlockSize,
62 eDefaultValuesStringPoolBucketCount = XalanSourceTreeDocument::eDefaultValuesStringPoolBucketCount,
63 eDefaultValuesStringPoolBucketSize = XalanSourceTreeDocument::eDefaultValuesStringPoolBucketSize };
93 bool fPoolAllText =
true,
94 block_size_type theNamesStringPoolBlockSize = eDefaultNamesStringPoolBlockSize,
95 bucket_count_type theNamesStringPoolBucketCount = eDefaultNamesStringPoolBucketCount,
96 bucket_size_type theNamesStringPoolBucketSize = eDefaultNamesStringPoolBucketSize,
97 block_size_type theValuesStringPoolBlockSize = eDefaultValuesStringPoolBlockSize,
98 bucket_count_type theValuesStringPoolBucketCount = eDefaultValuesStringPoolBucketCount,
99 bucket_size_type theValuesStringPoolBucketSize = eDefaultValuesStringPoolBucketSize);
117 size_type theAttributeBlockSize,
118 size_type theAttributeNSBlockSize,
119 size_type theCommentBlockSize,
120 size_type theElementBlockSize,
121 size_type theElementNSBlockSize,
122 size_type thePIBlockSize,
123 size_type theTextBlockSize,
124 size_type theTextIWSBlockSize,
125 bool fPoolAllText =
true);
131 destroy(data_type* theObject);
139 return m_allocator.ownsObject(theObject);
156 return m_allocator.getBlockCount();
168 return m_allocator.getBlockSize();
180 ArenaAllocatorType m_allocator;
189 #endif // XALANSOURCETREEDOCUMENTALLOCATOR_INCLUDE_GUARD_12455133
XalanSourceTreeDocument data_type
XalanSourceTreeDocument::bucket_count_type bucket_count_type
bool ownsObject(const data_type *theObject)
Determine if an object is owned by the allocator...
XalanSourceTreeDocument::bucket_size_type bucket_size_type
size_type getBlockCount() const
Get the number of ArenaBlocks currently allocated.
XalanDOMStringPool::block_size_type block_size_type
size_type getBlockSize() const
Get size of an ArenaBlock, that is, the number of objects in each block.
XalanSourceTreeDocument::block_size_type block_size_type
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
ArenaAllocatorType::size_type size_type
XalanDOMStringPool::bucket_count_type bucket_count_type
#define XALAN_XSLT_EXPORT
XalanDOMStringPool::bucket_size_type bucket_size_type
ReusableArenaBlockType::size_type size_type
ReusableArenaAllocator< data_type > ArenaAllocatorType