18#if !defined(XALANDOMSTRINGHASHTABLE_HEADER_GUARD_1357924680)
19#define XALANDOMSTRINGHASHTABLE_HEADER_GUARD_1357924680
50 enum { eDefaultBucketCount = 101, eDefaultBucketSize = 15 };
183 return m_buckets.getMemoryManager();
205 const size_t m_bucketCount;
207 const bucket_size_type m_bucketSize;
209 BucketVectorType m_buckets;
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
size_t bucketCount() const
Get the number of buckets in the table.
void clear()
Clear the hash table.
size_t size() const
Get the number of strings in the table.
const XalanDOMString * find(const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos, size_t *theBucketIndex=0) const
Find a string.
void insert(const XalanDOMString &theString, size_t theBucketIndex)
Insert a pointer to a string into the table.
~XalanDOMStringHashTable()
MemoryManager & getMemoryManager()
ExplicitMemoryManagedConstructionTraits< BucketType > ConstructionTraits
void getBucketCounts(BucketCountsType &theVector) const
Get the size of each of the buckets in the table.
size_t collisions() const
Get the collision count.
const XalanDOMString * find(const XalanDOMString &theString, size_t *theBucketIndex=0) const
Find a string.
XalanVector< BucketType, ConstructionTraits > BucketVectorType
void insert(const XalanDOMString &theString)
Insert a pointer to a string into the table.
XalanVector< bucket_size_type > BucketCountsType
const MemoryManager & getMemoryManager() const
XalanVector< const XalanDOMString * > BucketType
XalanDOMStringHashTable(MemoryManager &theManager, size_t theBucketCount=eDefaultBucketCount, bucket_size_type theBucketSize=eDefaultBucketSize)
Create a hash table.
BucketType::size_type bucket_size_type
MemoryManager * getMemoryManager()
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)