Blender
V3.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 15 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 22 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(), blender::LinearAllocator< Allocator >::allocate(), buffer, blender::GPointer::get(), blender::GPointer::type(), and type.
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(), blender::LinearAllocator< Allocator >::allocate(), buffer, blender::GMutablePointer::get(), blender::GMutablePointer::type(), and type.
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, blender::GMutablePointer::get(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::pop_as(), T, blender::GMutablePointer::type(), and type.
|
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, blender::GMutablePointer::get(), blender::GMutablePointer::is_type(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_as(), and T.