|
Blender V5.0
|
#include <BLI_set_slots.hh>
Public Member Functions | |
| HashedSetSlot () | |
| ~HashedSetSlot () | |
| HashedSetSlot (const HashedSetSlot &other) | |
| HashedSetSlot (HashedSetSlot &&other) noexcept(std::is_nothrow_move_constructible_v< Key >) | |
| Key * | key () |
| const Key * | key () const |
| bool | is_occupied () const |
| bool | is_empty () const |
| template<typename Hash> | |
| uint64_t | get_hash (const Hash &) const |
| template<typename ForwardKey, typename IsEqual> | |
| bool | contains (const ForwardKey &key, const IsEqual &is_equal, const uint64_t hash) const |
| template<typename ForwardKey> | |
| void | occupy (ForwardKey &&key, const uint64_t hash) |
| void | remove () |
This set slot implementation stores the hash of the key within the slot. This helps when computing the hash or an equality check is expensive.
Definition at line 169 of file BLI_set_slots.hh.
|
inline |
Definition at line 182 of file BLI_set_slots.hh.
|
inline |
Definition at line 187 of file BLI_set_slots.hh.
|
inline |
Definition at line 194 of file BLI_set_slots.hh.
|
inlinenoexcept |
Definition at line 203 of file BLI_set_slots.hh.
|
inline |
Definition at line 239 of file BLI_set_slots.hh.
|
inline |
Definition at line 232 of file BLI_set_slots.hh.
|
inline |
Definition at line 227 of file BLI_set_slots.hh.
|
inline |
Definition at line 222 of file BLI_set_slots.hh.
Referenced by blender::HashedSetSlot< std::string >::get_hash(), blender::HashedSetSlot< std::string >::occupy(), and blender::HashedSetSlot< std::string >::remove().
|
inline |
Definition at line 212 of file BLI_set_slots.hh.
|
inline |
Definition at line 217 of file BLI_set_slots.hh.
|
inline |
Definition at line 250 of file BLI_set_slots.hh.
|
inline |
Definition at line 258 of file BLI_set_slots.hh.