|
Blender V4.3
|
#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 17 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 24 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 26 of file BLI_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
|
inline |
Definition at line 63 of file BLI_generic_value_map.hh.
References blender::GValueMap< Key >::add_new_by_copy(), and blender::GValueMap< Key >::add_new_by_move().
|
inline |
Definition at line 54 of file BLI_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new_as(), and blender::LinearAllocator< Allocator >::allocate().
Referenced by blender::GValueMap< Key >::add_new().
|
inline |
Definition at line 44 of file BLI_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new_as(), and blender::LinearAllocator< Allocator >::allocate().
Referenced by blender::GValueMap< Key >::add_new().
|
inline |
Definition at line 37 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 105 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 76 of file BLI_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::pop_as().
|
inline |
Definition at line 87 of file BLI_generic_value_map.hh.
References BLI_assert, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::pop_as().
|
inline |
Definition at line 81 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 97 of file BLI_generic_value_map.hh.
References BLI_assert, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_as().