|
Blender V4.5
|
#include <BLI_generic_value_map.hh>
Public Member Functions | |
| GValueMap (LinearAllocator<> &allocator) | |
| ~GValueMap () | |
| template<typename ForwardKey > | |
| void | add_new_direct (ForwardKey &&key, GMutablePointer value) |
| template<typename ForwardKey > | |
| void | add_new_by_move (ForwardKey &&key, GMutablePointer value) |
| template<typename ForwardKey > | |
| void | add_new_by_copy (ForwardKey &&key, GPointer value) |
| template<typename ForwardKey , typename T > | |
| void | add_new (ForwardKey &&key, T &&value) |
| template<typename ForwardKey > | |
| GMutablePointer | extract (const ForwardKey &key) |
| template<typename ForwardKey > | |
| GPointer | lookup (const ForwardKey &key) const |
| template<typename T , typename ForwardKey > | |
| T | extract (const ForwardKey &key) |
| template<typename T , typename ForwardKey > | |
| const T & | lookup (const ForwardKey &key) const |
| template<typename ForwardKey > | |
| bool | contains (const ForwardKey &key) const |
This is a map that stores key-value-pairs. What makes it special is that the type of values does not have to be known at compile time. There just has to be a corresponding CPPType.
Definition at line 21 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 28 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 30 of file BLI_generic_value_map.hh.
References value, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
|
inline |
Definition at line 67 of file BLI_generic_value_map.hh.
References blender::GValueMap< Key >::add_new_by_copy(), blender::GValueMap< Key >::add_new_by_move(), key, and value.
|
inline |
Definition at line 58 of file BLI_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new_as(), blender::LinearAllocator< Allocator >::allocate(), blender::CPPType::copy_construct(), key, and value.
Referenced by blender::GValueMap< Key >::add_new().
|
inline |
Definition at line 48 of file BLI_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new_as(), blender::LinearAllocator< Allocator >::allocate(), key, blender::CPPType::move_construct(), and value.
Referenced by blender::GValueMap< Key >::add_new().
|
inline |
Definition at line 41 of file BLI_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new_as(), key, and value.
|
inline |
Definition at line 109 of file BLI_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), and key.
|
inline |
Definition at line 80 of file BLI_generic_value_map.hh.
References key, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::pop_as().
|
inline |
Definition at line 91 of file BLI_generic_value_map.hh.
References BLI_assert, blender::CPPType::is(), key, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::pop_as(), blender::CPPType::relocate_assign(), and value.
|
inline |
Definition at line 85 of file BLI_generic_value_map.hh.
References key, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_as().
|
inline |
Definition at line 101 of file BLI_generic_value_map.hh.
References BLI_assert, key, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_as(), and value.