#include <coherence/util/SafeHashSet.hpp>
Inherits MappedSet.
Public Types | |
| typedef spec::Handle | Handle |
| SafeHashSet Handle definition. | |
| typedef spec::View | View |
| SafeHashSet View definition. | |
| typedef spec::Holder | Holder |
| SafeHashSet Holder definition. | |
Protected Member Functions | |
| SafeHashSet () | |
| Default constructor. | |
| SafeHashSet (size32_t cInitialBuckets, float32_t flLoadFactor, float32_t flGrowthRate) | |
| Construct a thread-safe hash set using the specified settings. | |
| SafeHashSet (const SafeHashSet &that) | |
| Copy constructor. | |
| SafeHashSet | ( | size32_t | cInitialBuckets, | |
| float32_t | flLoadFactor, | |||
| float32_t | flGrowthRate | |||
| ) | [protected] |
Construct a thread-safe hash set using the specified settings.
| cInitialBuckets | the initial number of hash buckets, 0 < n | |
| flLoadFactor | the acceptable load factor before resizing occurs, 0 < n, such that a load factor of 1.0 causes resizing when the number of entries exceeds the number of buckets | |
| flGrowthRate | the rate of bucket growth when a resize occurs, 0 < n, such that a growth rate of 1.0 will double the number of buckets: bucketcount = bucketcount * (1 + growthrate) |