16 #if !defined(XALANDOMSTRINGHASHTABLE_HEADER_GUARD_1357924680)
17 #define XALANDOMSTRINGHASHTABLE_HEADER_GUARD_1357924680
38 XALAN_CPP_NAMESPACE_BEGIN
50 enum { eDefaultBucketCount = 101, eDefaultBucketSize = 15 };
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);
180 #if defined(XALAN_NEEDS_EXPLICIT_TEMPLATE_INSTANTIATION)
184 equalsXalanDOMString(
185 const XalanDOMChar* theString,
197 const XalanDOMChar*
const m_string;
206 assert(m_buckets.getMemoryManager() != 0);
208 return *m_buckets.getMemoryManager();
214 assert(m_buckets.getMemoryManager() != 0);
216 return *m_buckets.getMemoryManager();
232 const size_t m_bucketCount;
234 const bucket_size_type m_bucketSize;
240 unsigned int m_collisions;
245 XALAN_CPP_NAMESPACE_END
249 #endif // !defined(XALANDOMSTRINGPOOL_HEADER_GUARD_1357924680)
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1111
size_t bucketCount() const
Get the number of buckets in the table.
Definition: XalanDOMStringHashTable.hpp:90
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
BucketType::size_type bucket_size_type
Definition: XalanDOMStringHashTable.hpp:47
Definition: XalanDOMStringHashTable.hpp:42
Definition: XalanMemMgrAutoPtr.hpp:219
size_t collisions() const
Get the collision count.
Definition: XalanDOMStringHashTable.hpp:110
~XalanDOMStringHashTable()
Definition: XalanDOMStringHashTable.hpp:65
void clear(XalanDOMString &theString)
Remove all elements from target string.
Definition: DOMStringHelper.hpp:2291
XalanVector< const XalanDOMString * > BucketType
Definition: XalanDOMStringHashTable.hpp:46
XalanVector< bucket_size_type > BucketCountsType
Definition: XalanDOMStringHashTable.hpp:48
const MemoryManagerType & getMemoryManager() const
Definition: XalanDOMStringHashTable.hpp:212
size_t size() const
Get the number of strings in the table.
Definition: XalanDOMStringHashTable.hpp:79
size_t size_type
Definition: XalanVector.hpp:71
MemoryManagerType & getMemoryManager()
Definition: XalanDOMStringHashTable.hpp:204
Definition: XalanDOMString.hpp:42
unsigned int size_type
Definition: XalanDOMString.hpp:53
XalanDOMString & insert(XalanDOMString &theString, XalanDOMString::size_type thePosition, const XalanDOMString &theStringToInsert)
Insert a string into another string.
Definition: DOMStringHelper.hpp:2241
Definition: XalanDOMString.hpp:63