12 #ifndef _UtlHashBag_h_ 13 #define _UtlHashBag_h_ 23 #if defined(_WIN64) || defined(__x86_64__) || defined(__ppc64__) 24 #define NUM_HASHBAG_BUCKETS(bits) (1ull<<bits) 26 #define NUM_HASHBAG_BUCKETS(bits) (1<<bits) 203 size_t bucketNumber(
unsigned hash)
const;
216 #endif // _UtlHashBag_h_ size_t entries() const
Definition: UtlHashBag.cpp:351
virtual UtlContainable * removeReference(const UtlContainable *object)
Definition: UtlHashBag.cpp:216
size_t mElements
number of UtlContainable objects in this UtlHashMap
Definition: UtlHashBag.h:165
virtual UtlContainable * find(const UtlContainable *object) const
Definition: UtlHashBag.cpp:330
UtlBoolean contains(const UtlContainable *object) const
Definition: UtlHashBag.cpp:367
UtlBoolean isEmpty() const
Definition: UtlHashBag.cpp:359
UtlChain * mpBucket
an array of 2**n UtlChain elements, each used as a list header.
Definition: UtlHashBag.h:167
virtual UtlBoolean destroy(UtlContainable *object)
Definition: UtlHashBag.cpp:261
bool isUnLinked() const
Is this block not linked to anything?
Definition: UtlLink.h:93
virtual ~UtlHashBag()
Definition: UtlHashBag.cpp:57
UtlChain mIteratorList
Definition: UtlContainer.h:202
virtual UtlContainable * insert(UtlContainable *object)
Definition: UtlHashBag.cpp:141
const char *const UtlContainableType
Definition: UtlDefs.h:70
Definition: UtlContainable.h:37
virtual unsigned hash() const
Definition: UtlContainer.cpp:87
Definition: UtlLink.h:241
#define NUM_HASHBAG_BUCKETS(bits)
Definition: UtlHashBag.h:26
size_t numberOfBuckets() const
The current number of buckets in the hash.
Definition: UtlHashBag.h:134
virtual void removeAll()
Definition: UtlHashBag.cpp:278
UtlContainable * key() const
Definition: UtlHashBagIterator.cpp:189
Definition: UtlHashBag.h:41
Associate a key object (the parent UtlLink data) with its value object.
Definition: UtlLink.h:457
void resizeIfNeededAndSafe()
If the Hash is too full, add additional buckets.
Definition: UtlHashBag.h:151
int UtlBoolean
Definition: UtlDefs.h:41
Definition: UtlHashBagIterator.h:38
static UtlContainableType TYPE
Definition: UtlHashBag.h:45
void notifyIteratorsOfRemove(const UtlLink *pair)
Definition: UtlHashBag.cpp:390
virtual UtlContainableType getContainableType() const
Definition: UtlHashBag.cpp:381
Definition: UtlContainer.h:38
size_t mBucketBits
number of bits used to index the buckets
Definition: UtlHashBag.h:166
virtual void destroyAll()
Definition: UtlHashBag.cpp:302
UtlHashBag()
Definition: UtlHashBag.cpp:48