libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
Public Types | |
using | HashSetType = HashSet< std::pair< const K, T >, impl::HashMapHasherAdapter< K, T, H >, impl::HashMapEqualToAdapter< K, T, P > > |
using | HashSetBaseType = typename HashSetType::BaseType |
using | key_type = K |
using | mapped_type = T |
using | value_type = std::pair< const K, T > |
using | size_type = Size |
using | difference_type = std::ptrdiff_t |
using | hasher = H |
using | key_equal = P |
using | reference = value_type & |
using | const_reference = const value_type & |
using | pointer = value_type * |
using | const_pointer = const pointer |
using | iterator = typename HashSetType::iterator |
using | const_iterator = typename HashSetType::const_iterator |
Public Types inherited from gbl::HashSet< K, H, P > | |
using | BaseType = HashSetBase< HashSet< K, H, P >, K > |
using | reference = typename BaseType::reference |
using | const_reference = typename BaseType::const_reference |
using | pointer = typename BaseType::pointer |
using | const_pointer = typename BaseType::const_pointer |
using | size_type = typename BaseType::size_type |
using | key_type = typename BaseType::key_type |
using | value_type = typename BaseType::value_type |
using | hasher = H |
using | key_equal = P |
using | iterator = HashSetIterator< HashSet< K, H, P >, K > |
Public Types inherited from gbl::HashSetBase< HashSet< K, H, P >, K > | |
using | HashSetBaseType = HashSetBase< HashSet< K, H, P >, K > |
using | DerivedType = HashSet< K, H, P > |
using | KeyType = K |
using | key_type = KeyType |
using | value_type = KeyType |
using | reference = value_type & |
using | const_reference = const value_type & |
using | pointer = value_type * |
using | const_pointer = const value_type * |
using | const_iterator = HashSetIterator< std::add_const_t< HashSetBase< HashSet< K, H, P >, K > >, K > |
using | allocator_type = Context * |
using | size_type = Size |
using | difference_type = ptrdiff_t |
Public Member Functions | |
HashMap (size_type capacity=0, const H &hash=H(), const P &pred=P(), Context *pCtx=nullptr) | |
HashMap (size_type capacity, const H &hash, Context *pCtx) | |
HashMap (size_type capacity, Context *pCtx) | |
HashMap (Context *pCtx) | |
HashMap (std::initializer_list< value_type > init, size_type capacity=0, const H &hash=H(), const P &pred=P(), Context *pCtx=nullptr) | |
HashMap (std::initializer_list< value_type > init, size_type capacity, const H &hash, Context *pCtx) | |
HashMap (std::initializer_list< value_type > init, size_type capacity, Context *pCtx) | |
template<typename M > | |
void | insert_or_assign (const key_type &k, M &&obj) noexcept |
bool | erase (const key_type &k) noexcept |
auto | at (const key_type &key) const -> const mapped_type & |
auto | at (const key_type &key) -> mapped_type & |
auto | find (const key_type &key) const noexcept -> const_iterator |
auto | find (const key_type &key) noexcept -> iterator |
bool | contains (const key_type &key) const noexcept |
Public Member Functions inherited from gbl::HashSet< K, H, P > | |
HashSet (size_type capacity, const H &hash=H(), const P &pred=P(), Context *pCtx=nullptr) | |
HashSet (size_type capacity, const H &hash, Context *pContext) | |
HashSet (size_type capacity, Context *pContext) | |
HashSet (type_compatible_container_readable< value_type > auto &&init, size_type capacity=0, const H hasher=H(), const P pred=P(), Context *pCtx=nullptr) | |
HashSet (type_compatible_container_readable< value_type > auto &&init, size_type capacity, H hasher, Context *pCtx) | |
HashSet (type_compatible_container_readable< value_type > auto &&init, size_type capacity, Context *pCtx) | |
HashSet (type_compatible_iterator_readable< value_type > auto first, type_compatible_iterator_readable< value_type > auto last, size_type capacity=0, const H &hash=H(), const P &pred=P(), Context *pCtx=nullptr) | |
HashSet (type_compatible_iterator_readable< value_type > auto first, type_compatible_iterator_readable< value_type > auto last, size_type capacity, const H &hash, Context *pCtx) | |
HashSet (type_compatible_iterator_readable< value_type > auto first, type_compatible_iterator_readable< value_type > auto last, size_type capacity, Context *pCtx) | |
HashSet (HashSet &other) | |
HashSet (HashSet &other, Context *pCtx) | |
HashSet (HashSet &&other) | |
HashSet (HashSet &&other, Context *pCtx) | |
HashSet & | operator= (const HashSet &other) |
HashSet & | operator= (const HashSet &&other) |
HashSet & | operator= (type_compatible_container_readable< value_type > auto &&init) |
pointer | get (const key_type &key) noexcept |
reference | at (const key_type &key) |
iterator | find (const key_type &key) noexcept |
pointer | set (const key_type &key) noexcept |
bool | insert (const key_type &key) noexcept |
void | insert_or_assign (const key_type &key) noexcept |
bool | erase (const key_type &key) noexcept |
pointer | extract (const key_type &key) noexcept |
void | clear (void) noexcept |
template<typename... Args> | |
bool | emplace (const key_type &key, Args &&... args) |
template<typename... Args> | |
bool | try_emplace (const key_type &key, Args &&... args) noexcept |
pointer | probe (size_type position) noexcept |
iterator | next (iterator *pPrev) |
iterator | begin (void) |
iterator | end (void) |
Public Member Functions inherited from gbl::HashSetBase< HashSet< K, H, P >, K > | |
operator const GblHashSet * () const | |
decltype(auto) | getSet (void) const |
decltype(auto) | getSet (void) |
size_type | size (void) const noexcept |
size_type | bucket_count (void) const noexcept |
size_type | bucket_size (void) const noexcept |
bool | empty (void) const noexcept |
GblContext * | context (void) const noexcept |
const_pointer | get (const key_type &key) const noexcept |
const_reference | at (const key_type &key) const |
size_type | count (const key_type &key) const noexcept |
bool | contains (const key_type &key) const noexcept |
const_pointer | probe (size_type position) const noexcept |
const_iterator | find (const key_type &key) const noexcept |
bool | for_each (F &&fn) const noexcept |
const_iterator | next (const_iterator *pPrev) const |
const_iterator | cbegin (void) const |
auto | begin (void) const |
const_iterator | cend (void) const |
auto | end (void) const |
Public Member Functions inherited from gbl::ReadWriteIndexable< CRTP, Key, Value, Writable > | |
Value | operator[] (Key key) const |
Protected Member Functions | |
auto | getElement_ (const K &key) const noexcept -> const T & |
void | setElement_ (const K &key, const T &value) noexcept |
Protected Member Functions inherited from gbl::HashSet< K, H, P > | |
const GblHashSet * | set_ (void) const |
GblHashSet * | set_ (void) |
Friends | |
class | ReadWriteIndexable< HashMap< K, T, H, P >, K, T, true > |
Additional Inherited Members | ||
Data Fields inherited from GblHashSet | ||
struct { | ||
GblContext * pCtx | ||
size_t entrySize | ||
size_t capacity | ||
GblHashSetHashFn pFnHash | ||
GblHashSetCmpFn pFnCompare | ||
GblHashSetDtorFn pFnDestruct | ||
size_t bucketSize | ||
size_t bucketCount | ||
size_t count | ||
size_t mask | ||
void * pBuckets | ||
void * pSpare | ||
void * pUserdata | ||
} | private_ | |
Definition at line 25 of file gimbal_hash_map.hpp.
using gbl::HashMap< K, T, H, P >::HashSetType = HashSet<std::pair<const K, T>, impl::HashMapHasherAdapter<K, T, H>, impl::HashMapEqualToAdapter<K, T, P> > |
Definition at line 34 of file gimbal_hash_map.hpp.
using gbl::HashMap< K, T, H, P >::HashSetBaseType = typename HashSetType::BaseType |
Definition at line 37 of file gimbal_hash_map.hpp.
Definition at line 38 of file gimbal_hash_map.hpp.
Definition at line 39 of file gimbal_hash_map.hpp.
Definition at line 40 of file gimbal_hash_map.hpp.
Definition at line 41 of file gimbal_hash_map.hpp.
Definition at line 42 of file gimbal_hash_map.hpp.
Definition at line 43 of file gimbal_hash_map.hpp.
Definition at line 44 of file gimbal_hash_map.hpp.
Definition at line 45 of file gimbal_hash_map.hpp.
Definition at line 46 of file gimbal_hash_map.hpp.
Definition at line 47 of file gimbal_hash_map.hpp.
Definition at line 48 of file gimbal_hash_map.hpp.
using gbl::HashMap< K, T, H, P >::iterator = typename HashSetType::iterator |
Definition at line 49 of file gimbal_hash_map.hpp.
using gbl::HashMap< K, T, H, P >::const_iterator = typename HashSetType::const_iterator |
Definition at line 50 of file gimbal_hash_map.hpp.
|
inline |
Definition at line 154 of file gimbal_hash_map.hpp.
Definition at line 175 of file gimbal_hash_map.hpp.
|
inline |
Definition at line 181 of file gimbal_hash_map.hpp.
|
inlineexplicit |
Definition at line 185 of file gimbal_hash_map.hpp.
|
inline |
Definition at line 161 of file gimbal_hash_map.hpp.
|
inline |
Definition at line 190 of file gimbal_hash_map.hpp.
|
inline |
Definition at line 197 of file gimbal_hash_map.hpp.
|
inlineprotectednoexcept |
Definition at line 203 of file gimbal_hash_map.hpp.
|
inlineprotectednoexcept |
Definition at line 208 of file gimbal_hash_map.hpp.
Definition at line 214 of file gimbal_hash_map.hpp.
Definition at line 220 of file gimbal_hash_map.hpp.
|
inline |
Definition at line 226 of file gimbal_hash_map.hpp.
|
inline |
Definition at line 233 of file gimbal_hash_map.hpp.
|
inlinenoexcept |
Definition at line 240 of file gimbal_hash_map.hpp.
Definition at line 246 of file gimbal_hash_map.hpp.
Definition at line 252 of file gimbal_hash_map.hpp.
Definition at line 252 of file gimbal_hash_map.hpp.