Blender
V3.3
|
#include <BLI_multi_value_map.hh>
Public Types | |
using | size_type = int64_t |
Public Member Functions | |
void | add (const Key &key, const Value &value) |
void | add (const Key &key, Value &&value) |
void | add (Key &&key, const Value &value) |
void | add (Key &&key, Value &&value) |
template<typename ForwardKey , typename ForwardValue > | |
void | add_as (ForwardKey &&key, ForwardValue &&value) |
void | add_non_duplicates (const Key &key, const Value &value) |
void | add_multiple (const Key &key, Span< Value > values) |
void | add_multiple (Key &&key, Span< Value > values) |
template<typename ForwardKey > | |
void | add_multiple_as (ForwardKey &&key, Span< Value > values) |
Span< Value > | lookup (const Key &key) const |
template<typename ForwardKey > | |
Span< Value > | lookup_as (const ForwardKey &key) const |
MutableSpan< Value > | lookup (const Key &key) |
template<typename ForwardKey > | |
MutableSpan< Value > | lookup_as (const ForwardKey &key) |
MapType::ItemIterator | items () const |
MapType::KeyIterator | keys () const |
MapType::ValueIterator | values () const |
Definition at line 26 of file BLI_multi_value_map.hh.
using blender::MultiValueMap< Key, Value >::size_type = int64_t |
Definition at line 28 of file BLI_multi_value_map.hh.
|
inline |
Add a new value for the given key. If the map contains the key already, the value will be appended to the list of corresponding values.
Definition at line 39 of file BLI_multi_value_map.hh.
References blender::MultiValueMap< Key, Value >::add_as().
Referenced by BLI_string_search_query(), blender::nodes::node_geo_curve_sample_cc::SampleCurveFunction::call(), blender::compositor::NodeOperationBuilder::convert_to_operations(), find_output_attributes_to_store(), and ntree_update_reroute_nodes().
|
inline |
Definition at line 43 of file BLI_multi_value_map.hh.
References blender::MultiValueMap< Key, Value >::add_as().
|
inline |
Definition at line 47 of file BLI_multi_value_map.hh.
References blender::MultiValueMap< Key, Value >::add_as().
|
inline |
Definition at line 51 of file BLI_multi_value_map.hh.
References blender::MultiValueMap< Key, Value >::add_as().
|
inline |
Definition at line 56 of file BLI_multi_value_map.hh.
Referenced by blender::MultiValueMap< Key, Value >::add().
|
inline |
Add all given values to the key.
Definition at line 71 of file BLI_multi_value_map.hh.
References blender::MultiValueMap< Key, Value >::add_multiple_as(), and blender::MultiValueMap< Key, Value >::values().
|
inline |
Definition at line 75 of file BLI_multi_value_map.hh.
References blender::MultiValueMap< Key, Value >::add_multiple_as(), and blender::MultiValueMap< Key, Value >::values().
|
inline |
Definition at line 79 of file BLI_multi_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_default_as(), and blender::MultiValueMap< Key, Value >::values().
Referenced by blender::MultiValueMap< Key, Value >::add_multiple().
|
inline |
Definition at line 62 of file BLI_multi_value_map.hh.
|
inline |
NOTE: This signature will change when the implementation changes.
Definition at line 120 of file BLI_multi_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items().
Referenced by compute_attributes_to_store().
|
inline |
NOTE: This signature will change when the implementation changes.
Definition at line 128 of file BLI_multi_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::keys().
Referenced by BLI_string_search_query(), and blender::nodes::node_geo_curve_sample_cc::SampleCurveFunction::call().
|
inline |
Get a mutable span to all the values that are stored for the given key.
Definition at line 104 of file BLI_multi_value_map.hh.
References blender::MultiValueMap< Key, Value >::lookup_as().
|
inline |
Get a span to all the values that are stored for the given key.
Definition at line 88 of file BLI_multi_value_map.hh.
References blender::MultiValueMap< Key, Value >::lookup_as().
Referenced by BLI_string_search_query(), blender::nodes::node_geo_curve_sample_cc::SampleCurveFunction::call(), blender::compositor::NodeOperationBuilder::convert_to_operations(), and propagate_reroute_type_from_start_socket().
|
inline |
Definition at line 108 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 92 of file BLI_multi_value_map.hh.
Referenced by blender::MultiValueMap< Key, Value >::lookup().
|
inline |
NOTE: This signature will change when the implementation changes.
Definition at line 136 of file BLI_multi_value_map.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
Referenced by blender::MultiValueMap< Key, Value >::add_multiple(), and blender::MultiValueMap< Key, Value >::add_multiple_as().