|
Blender V5.0
|
#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.
|
inline |
Definition at line 67 of file BLI_generic_value_map.hh.
References add_new_by_copy(), add_new_by_move(), and T.
|
inline |
Definition at line 58 of file BLI_generic_value_map.hh.
References blender::CPPType::copy_construct(), blender::GPointer::get(), and blender::GPointer::type().
Referenced by add_new().
|
inline |
Definition at line 48 of file BLI_generic_value_map.hh.
References blender::GMutablePointer::get(), blender::CPPType::move_construct(), and blender::GMutablePointer::type().
Referenced by add_new().
|
inline |
Definition at line 41 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 109 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 91 of file BLI_generic_value_map.hh.
References BLI_assert, blender::GMutablePointer::get(), blender::CPPType::is(), blender::CPPType::relocate_assign(), T, and blender::GMutablePointer::type().
|
inline |
Definition at line 80 of file BLI_generic_value_map.hh.
|
inline |
Definition at line 101 of file BLI_generic_value_map.hh.
References BLI_assert, blender::GMutablePointer::get(), blender::GMutablePointer::is_type(), and T.
|
inline |
Definition at line 85 of file BLI_generic_value_map.hh.