libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
Public Types | |
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 | |
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 |
Protected Member Functions | |
const GblHashSet * | set_ (void) const |
GblHashSet * | set_ (void) |
Friends | |
class | HashSetBase< HashSet< K, H, P >, K > |
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 116 of file gimbal_hash_set.hpp.
Definition at line 123 of file gimbal_hash_set.hpp.
Definition at line 124 of file gimbal_hash_set.hpp.
Definition at line 125 of file gimbal_hash_set.hpp.
Definition at line 126 of file gimbal_hash_set.hpp.
Definition at line 127 of file gimbal_hash_set.hpp.
Definition at line 128 of file gimbal_hash_set.hpp.
Definition at line 129 of file gimbal_hash_set.hpp.
Definition at line 130 of file gimbal_hash_set.hpp.
Definition at line 131 of file gimbal_hash_set.hpp.
Definition at line 132 of file gimbal_hash_set.hpp.
Definition at line 133 of file gimbal_hash_set.hpp.
|
inline |
Definition at line 434 of file gimbal_hash_set.hpp.
Definition at line 452 of file gimbal_hash_set.hpp.
|
inline |
Definition at line 458 of file gimbal_hash_set.hpp.
Definition at line 463 of file gimbal_hash_set.hpp.
|
inline |
Definition at line 467 of file gimbal_hash_set.hpp.
|
inline |
Definition at line 478 of file gimbal_hash_set.hpp.
|
inline |
Definition at line 485 of file gimbal_hash_set.hpp.
|
inline |
Definition at line 491 of file gimbal_hash_set.hpp.
|
inline |
Definition at line 505 of file gimbal_hash_set.hpp.
|
inline |
Definition at line 513 of file gimbal_hash_set.hpp.
Definition at line 527 of file gimbal_hash_set.hpp.
Definition at line 522 of file gimbal_hash_set.hpp.
Definition at line 531 of file gimbal_hash_set.hpp.
|
inlineprotected |
Definition at line 428 of file gimbal_hash_set.hpp.
|
inlineprotected |
Definition at line 431 of file gimbal_hash_set.hpp.
Definition at line 536 of file gimbal_hash_set.hpp.
Definition at line 542 of file gimbal_hash_set.hpp.
|
inline |
Definition at line 548 of file gimbal_hash_set.hpp.
Definition at line 555 of file gimbal_hash_set.hpp.
Definition at line 560 of file gimbal_hash_set.hpp.
Definition at line 569 of file gimbal_hash_set.hpp.
Definition at line 574 of file gimbal_hash_set.hpp.
Definition at line 579 of file gimbal_hash_set.hpp.
Definition at line 584 of file gimbal_hash_set.hpp.
Definition at line 589 of file gimbal_hash_set.hpp.
Definition at line 594 of file gimbal_hash_set.hpp.
Definition at line 599 of file gimbal_hash_set.hpp.
|
inline |
Definition at line 618 of file gimbal_hash_set.hpp.
|
inlinenoexcept |
Definition at line 610 of file gimbal_hash_set.hpp.
|
inlinenoexcept |
Definition at line 604 of file gimbal_hash_set.hpp.
Definition at line 626 of file gimbal_hash_set.hpp.
Definition at line 631 of file gimbal_hash_set.hpp.
Definition at line 636 of file gimbal_hash_set.hpp.
Definition at line 103 of file gimbal_hash_set.hpp.