1 #ifndef _GEMFIRE_HASHMAPOFSHAREDBASE_HPP_ 2 #define _GEMFIRE_HASHMAPOFSHAREDBASE_HPP_ 13 #include "gfcpp_globals.hpp" 17 #include <unordered_map> 28 typedef std::unordered_map< SharedBasePtr, SharedBasePtr,
29 HashSB, EqualToSB > HMofSBP;
30 typedef HMofSBP::const_iterator HMofSBPIterator;
33 class HMofSBPIterator;
43 HMofSBP* m_stdHashMap;
56 HMofSBPIterator* m_iter;
58 Iterator(
const HMofSBPIterator& iter );
68 const SharedBasePtr first( )
const;
70 const SharedBasePtr second( )
const;
74 void operator ++ (
int );
76 bool operator == (
const Iterator& other )
const;
78 bool operator != (
const Iterator& other )
const;
91 int32_t size( )
const;
94 int32_t max_size( )
const;
100 int32_t bucket_count( )
const;
103 void resize( int32_t n );
111 bool insert(
const SharedBasePtr& k,
const SharedBasePtr& v );
114 int32_t erase(
const SharedBasePtr& k );
120 bool contains(
const SharedBasePtr& k )
const;
123 Iterator find(
const SharedBasePtr& k )
const;
126 int32_t count(
const SharedBasePtr& k )
const;
131 SharedBasePtr& operator [] (
const SharedBasePtr& k );
Interface of an iterator for HashMapOfSharedBase.
Definition: HashMapOfSharedBase.hpp:52
Represents a HashMap of SharedBase
Definition: HashMapOfSharedBase.hpp:39
bool(* EqualTo)(const SharedBasePtr &, const SharedBasePtr &)
typedef for the hashing key equality function.
Definition: HashFunction.hpp:28
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
int32_t(* Hasher)(const SharedBasePtr &)
typedef for the hash function used by the hashing schemes.
Definition: HashFunction.hpp:25
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51