VMware GemFire Native C++ Reference  9.2.4
apache::geode::client::HashSetOfCacheableKey Class Reference

A hash set of CacheableKey objects that also extends SharedBase for smart pointers. More...

Inherits apache::geode::client::HashSetT< TKEY >, and apache::geode::client::SharedBase.

Public Types

typedef _HashSetOfCacheableKey::Iterator Iterator
 Iterator class for the hash set. More...
 

Public Member Functions

Iterator begin () const
 Get an iterator pointing to the start of hash_set. More...
 
int32_t bucket_count () const
 Returns the number of buckets used by the hash set. More...
 
void clear ()
 Erases all of the elements. More...
 
bool contains (const TKEY &k) const
 Check if a given key k exists in the hash set. More...
 
int32_t count (const TKEY &k) const
 Counts the number of elements whose key is k. More...
 
bool empty () const
 true if the hash set's size is 0. More...
 
Iterator end () const
 Get an iterator pointing to the end of hash_set. More...
 
int32_t erase (const TKEY &k)
 Erases the element whose key is k. More...
 
 HashSetOfCacheableKey ()
 Create an empty HashSet. More...
 
 HashSetOfCacheableKey (const HashSetOfCacheableKey &other)
 Copy constructor. More...
 
 HashSetOfCacheableKey (int32_t n)
 Creates an empty hash set with at least n buckets. More...
 
bool insert (const TKEY &k)
 Inserts the key k into the hash set, when k does not exist in the hash set. More...
 
int32_t max_size () const
 Returns the largest possible size of the hash set. More...
 
void preserveSB () const
 Atomically increment reference count. More...
 
int32_t refCount ()
 
void releaseSB () const
 Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero. More...
 
void resize (int32_t n)
 Increases the bucket count to at least n. More...
 
int32_t size () const
 Returns the size of the hash set. More...
 
void swap (HashSetT &other)
 Swaps the contents of two hash sets. More...
 

Detailed Description

A hash set of CacheableKey objects that also extends SharedBase for smart pointers.

Member Typedef Documentation

◆ Iterator

Constructor & Destructor Documentation

◆ HashSetOfCacheableKey() [1/3]

apache::geode::client::HashSetOfCacheableKey::HashSetOfCacheableKey ( )
inline

Create an empty HashSet.

◆ HashSetOfCacheableKey() [2/3]

apache::geode::client::HashSetOfCacheableKey::HashSetOfCacheableKey ( int32_t  n)
inline

Creates an empty hash set with at least n buckets.

◆ HashSetOfCacheableKey() [3/3]

apache::geode::client::HashSetOfCacheableKey::HashSetOfCacheableKey ( const HashSetOfCacheableKey other)
inline

Copy constructor.

Member Function Documentation

◆ begin()

template<typename TKEY >
Iterator apache::geode::client::HashSetT< TKEY >::begin ( ) const
inlineinherited

Get an iterator pointing to the start of hash_set.

◆ bucket_count()

template<typename TKEY >
int32_t apache::geode::client::HashSetT< TKEY >::bucket_count ( ) const
inlineinherited

Returns the number of buckets used by the hash set.

◆ clear()

template<typename TKEY >
void apache::geode::client::HashSetT< TKEY >::clear ( )
inlineinherited

Erases all of the elements.

◆ contains()

template<typename TKEY >
bool apache::geode::client::HashSetT< TKEY >::contains ( const TKEY &  k) const
inlineinherited

Check if a given key k exists in the hash set.

◆ count()

template<typename TKEY >
int32_t apache::geode::client::HashSetT< TKEY >::count ( const TKEY &  k) const
inlineinherited

Counts the number of elements whose key is k.

◆ empty()

template<typename TKEY >
bool apache::geode::client::HashSetT< TKEY >::empty ( ) const
inlineinherited

true if the hash set's size is 0.

◆ end()

template<typename TKEY >
Iterator apache::geode::client::HashSetT< TKEY >::end ( ) const
inlineinherited

Get an iterator pointing to the end of hash_set.

◆ erase()

template<typename TKEY >
int32_t apache::geode::client::HashSetT< TKEY >::erase ( const TKEY &  k)
inlineinherited

Erases the element whose key is k.

◆ insert()

template<typename TKEY >
bool apache::geode::client::HashSetT< TKEY >::insert ( const TKEY &  k)
inlineinherited

Inserts the key k into the hash set, when k does not exist in the hash set.

◆ max_size()

template<typename TKEY >
int32_t apache::geode::client::HashSetT< TKEY >::max_size ( ) const
inlineinherited

Returns the largest possible size of the hash set.

◆ preserveSB()

void apache::geode::client::SharedBase::preserveSB ( ) const
inherited

Atomically increment reference count.

◆ refCount()

int32_t apache::geode::client::SharedBase::refCount ( )
inlineinherited
Returns
the reference count

◆ releaseSB()

void apache::geode::client::SharedBase::releaseSB ( ) const
inherited

Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.

◆ resize()

template<typename TKEY >
void apache::geode::client::HashSetT< TKEY >::resize ( int32_t  n)
inlineinherited

Increases the bucket count to at least n.

◆ size()

template<typename TKEY >
int32_t apache::geode::client::HashSetT< TKEY >::size ( ) const
inlineinherited

Returns the size of the hash set.

◆ swap()

template<typename TKEY >
void apache::geode::client::HashSetT< TKEY >::swap ( HashSetT< TKEY > &  other)
inlineinherited

Swaps the contents of two hash sets.


Pivotal GemFire C++ Cache API Documentation