|
Blender V5.0
|
#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) |
| int64_t | size () const |
| bool | is_empty () const |
| MapType::ItemIterator | items () const |
| MapType::KeyIterator | keys () const |
| MapType::ValueIterator | values () const |
| void | clear () |
| void | clear_and_shrink () |
Definition at line 29 of file BLI_multi_value_map.hh.
| using blender::MultiValueMap< Key, Value >::size_type = int64_t |
Definition at line 31 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 42 of file BLI_multi_value_map.hh.
References add_as().
Referenced by blender::ed::asset::build_filtered_all_catalog_tree(), blender::geometry::components_supported_reordering(), blender::nodes::find_output_attributes_to_store(), blender::bke::node_tree_reference_lifetimes::find_reference_sets(), blender::ed::space_node::join_group_inputs(), blender::nodes::node_geo_interpolate_curves_cc::separate_guides_by_group(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and write_libraries().
|
inline |
Definition at line 46 of file BLI_multi_value_map.hh.
References add_as().
|
inline |
Definition at line 50 of file BLI_multi_value_map.hh.
References add_as().
|
inline |
Definition at line 54 of file BLI_multi_value_map.hh.
References add_as().
|
inline |
|
inline |
Add all given values to the key.
Definition at line 74 of file BLI_multi_value_map.hh.
References add_multiple_as(), and values().
Referenced by blender::geometry::components_supported_reordering(), blender::ed::space_node::join_group_inputs(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and blender::tests::TEST().
|
inline |
Definition at line 78 of file BLI_multi_value_map.hh.
References add_multiple_as(), and values().
|
inline |
Definition at line 82 of file BLI_multi_value_map.hh.
References values().
Referenced by add_multiple(), and add_multiple().
|
inline |
Definition at line 65 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 161 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 166 of file BLI_multi_value_map.hh.
|
inline |
Returns true if there are no keys in the map. NOTE: There may be keys without values. In this case the map is not empty.
Definition at line 132 of file BLI_multi_value_map.hh.
|
inline |
NOTE: This signature will change when the implementation changes.
Definition at line 140 of file BLI_multi_value_map.hh.
Referenced by blender::nodes::node_geo_interpolate_curves_cc::build_kdtrees_for_root_positions(), blender::nodes::compute_attributes_to_store(), blender::nodes::node_geo_interpolate_curves_cc::compute_points_per_curve_by_group(), and blender::tests::TEST().
|
inline |
NOTE: This signature will change when the implementation changes.
Definition at line 148 of file BLI_multi_value_map.hh.
Referenced by blender::nodes::store_output_attributes(), and blender::tests::TEST().
|
inline |
Get a mutable span to all the values that are stored for the given key.
Definition at line 107 of file BLI_multi_value_map.hh.
References lookup_as().
|
inline |
Get a span to all the values that are stored for the given key.
Definition at line 91 of file BLI_multi_value_map.hh.
References lookup_as().
Referenced by blender::ed::asset::build_filtered_all_catalog_tree(), blender::ed::space_node::join_group_inputs(), blender::bke::node_tree_reference_lifetimes::prepare_required_data_for_closure_outputs(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and write_libraries().
|
inline |
Definition at line 111 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 95 of file BLI_multi_value_map.hh.
|
inline |
Get the number of keys.
Definition at line 123 of file BLI_multi_value_map.hh.
Referenced by blender::nodes::store_output_attributes().
|
inline |
NOTE: This signature will change when the implementation changes.
Definition at line 156 of file BLI_multi_value_map.hh.
Referenced by add_multiple(), add_multiple(), add_multiple_as(), and blender::tests::TEST().