3 #ifndef GEODE_HASHSETOFSHAREDBASE_H_ 4 #define GEODE_HASHSETOFSHAREDBASE_H_ 23 #include "geode_globals.hpp" 27 #include <unordered_set> 38 typedef std::unordered_set<SharedBasePtr, HashSB, EqualToSB> HSofSBP;
39 typedef HSofSBP::const_iterator HSofSBPIterator;
42 class HSofSBPIterator;
49 HSofSBP* m_stdHashSet;
59 HSofSBPIterator* m_iter;
77 bool operator==(
const Iterator& other)
const;
79 bool operator!=(
const Iterator& other)
const;
95 int32_t max_size()
const;
101 int32_t bucket_count()
const;
104 void resize(int32_t n);
153 #endif // GEODE_HASHSETOFSHAREDBASE_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
Represents a HashSet of SharedBase
Definition: HashSetOfSharedBase.hpp:47
Interface of an iterator for HashSetOfSharedBase.
Definition: HashSetOfSharedBase.hpp:56
This namespace contains all the Geode C++ API classes, enumerations and globals.