3 #ifndef GEODE_HASHMAPOFSHAREDBASE_H_ 4 #define GEODE_HASHMAPOFSHAREDBASE_H_ 23 #include "geode_globals.hpp" 27 #include <unordered_map> 38 typedef std::unordered_map<SharedBasePtr, SharedBasePtr, HashSB, EqualToSB>
40 typedef HMofSBP::const_iterator HMofSBPIterator;
43 class HMofSBPIterator;
50 HMofSBP* m_stdHashMap;
59 HMofSBPIterator* m_iter;
61 Iterator(
const HMofSBPIterator& iter);
77 bool operator==(
const Iterator& other)
const;
79 bool operator!=(
const Iterator& other)
const;
93 int32_t max_size()
const;
99 int32_t bucket_count()
const;
102 void resize(int32_t n);
161 #endif // GEODE_HASHMAPOFSHAREDBASE_H_ Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
bool(* EqualTo)(const SharedBasePtr &, const SharedBasePtr &)
typedef for the hashing key equality function.
Definition: HashFunction.hpp:38
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:52
int32_t(* Hasher)(const SharedBasePtr &)
typedef for the hash function used by the hashing schemes.
Definition: HashFunction.hpp:35
Interface of an iterator for HashMapOfSharedBase.
Definition: HashMapOfSharedBase.hpp:57
Represents a HashMap of SharedBase
Definition: HashMapOfSharedBase.hpp:48
This namespace contains all the Geode C++ API classes, enumerations and globals.