Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (


SafeHashSet Class Reference

#include <coherence/util/SafeHashSet.hpp>

Inherits MappedSet.

List of all members.

Detailed Description

A thread-safe Set implementation which is backed by a SafeHashMap.

lh 2012.08.23
Coherence 12.1.2

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.

Constructor & Destructor Documentation

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)

The documentation for this class was generated from the following file:
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.