|
Blender
V2.93
|
#include <FN_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 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 30 of file FN_generic_value_map.hh.
|
inline |
Definition at line 37 of file FN_generic_value_map.hh.
|
inline |
Definition at line 41 of file FN_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
|
inline |
Definition at line 78 of file FN_generic_value_map.hh.
References blender::fn::GValueMap< Key >::add_new_by_copy(), and blender::fn::GValueMap< Key >::add_new_by_move().
Referenced by blender::nodes::GeoNodeExecParams::set_output().
|
inline |
Definition at line 69 of file FN_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new_as(), blender::LinearAllocator< Allocator >::allocate(), buffer, blender::fn::GPointer::get(), blender::fn::GPointer::type(), and type.
Referenced by blender::fn::GValueMap< Key >::add_new(), and blender::nodes::GeoNodeExecParams::set_output_by_copy().
|
inline |
Definition at line 59 of file FN_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new_as(), blender::LinearAllocator< Allocator >::allocate(), buffer, blender::fn::GMutablePointer::get(), blender::fn::GMutablePointer::type(), and type.
Referenced by blender::fn::GValueMap< Key >::add_new(), and blender::nodes::GeoNodeExecParams::set_output_by_move().
|
inline |
Definition at line 52 of file FN_generic_value_map.hh.
|
inline |
Definition at line 115 of file FN_generic_value_map.hh.
Referenced by blender::nodes::GeoNodeExecParams::extract_multi_input().
|
inline |
Definition at line 91 of file FN_generic_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::pop_as().
Referenced by blender::nodes::GeoNodeExecParams::extract_input(), and blender::nodes::GeoNodeExecParams::extract_multi_input().
|
inline |
Definition at line 97 of file FN_generic_value_map.hh.
References BLI_assert, blender::fn::GMutablePointer::get(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::pop_as(), T, blender::fn::GMutablePointer::type(), and type.
|
inline |
Definition at line 107 of file FN_generic_value_map.hh.
References BLI_assert, blender::fn::GMutablePointer::get(), blender::fn::GMutablePointer::is_type(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_as(), and T.
Referenced by blender::nodes::GeoNodeExecParams::get_input().