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);
125 bool fPoolAllText =
true);
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