18 #if !defined(XALANDOMSTRINGHASHTABLE_HEADER_GUARD_1357924680) 19 #define XALANDOMSTRINGHASHTABLE_HEADER_GUARD_1357924680 36 XALAN_CPP_NAMESPACE_BEGIN
50 enum { eDefaultBucketCount = 101, eDefaultBucketSize = 15 };
61 MemoryManager& theManager,
62 size_t theBucketCount = eDefaultBucketCount,
63 bucket_size_type theBucketSize = eDefaultBucketSize);
101 getBucketCounts(BucketCountsType& theVector)
const;
125 size_t* theBucketIndex = 0)
const;
141 const XalanDOMChar* theString,
143 size_t* theBucketIndex = 0)
const;
178 size_t theBucketIndex);
183 return m_buckets.getMemoryManager();
189 return m_buckets.getMemoryManager();
205 const size_t m_bucketCount;
207 const bucket_size_type m_bucketSize;
209 BucketVectorType m_buckets;
218 XALAN_CPP_NAMESPACE_END
222 #endif // !defined(XALANDOMSTRINGPOOL_HEADER_GUARD_1357924680) BucketType::size_type bucket_size_type
ExplicitMemoryManagedConstructionTraits< BucketType > ConstructionTraits
~XalanDOMStringHashTable()
void clear(XalanDOMString &theString)
Remove all elements from target string.
XalanVector< const XalanDOMString * > BucketType
size_t bucketCount() const
Get the number of buckets in the table.
size_t size() const
Get the number of strings in the table.
XalanVector< bucket_size_type > BucketCountsType
XalanVector< BucketType, ConstructionTraits > BucketVectorType
const MemoryManager & getMemoryManager() const
size_t collisions() const
Get the collision count.
bool operator==(const ElemAttributeSet &theLHS, const ElemAttributeSet &theRHS)
MemoryManager & getMemoryManager()
XalanDOMString & insert(XalanDOMString &theString, XalanDOMString::size_type thePosition, const XalanDOMString &theStringToInsert)
Insert a string into another string.