|
Blender V5.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) |
| int64_t | size () const |
| bool | is_empty () const |
| MapType::ItemIterator | items () const |
| MapType::MutableItemIterator | items () |
| MapType::KeyIterator | keys () const |
| MapType::ValueIterator | values () const |
| MapType::MutableValueIterator | values () |
| void | clear () |
| void | clear_and_shrink () |
Friends | |
| bool | operator== (const MultiValueMap &a, const MultiValueMap &b)=default |
Definition at line 28 of file BLI_multi_value_map.hh.
| using blender::MultiValueMap< Key, Value >::size_type = int64_t |
Definition at line 30 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 41 of file BLI_multi_value_map.hh.
Referenced by blender::bmo_weld_verts_exec(), blender::ed::asset::build_filtered_all_catalog_tree(), blender::nodes::gizmos::build_tree_gizmo_propagation(), blender::nodes::node_geo_sample_sound_frequencies_cc::SampleSoundFunction::call(), blender::xpbd::color_constraints(), blender::geometry::components_supported_reordering(), blender::ed::greasepencil::create_connected_edges_from_fill(), blender::nodes::find_output_attributes_to_store(), blender::bke::node_tree_reference_lifetimes::find_reference_sets(), blender::fix_geometry_nodes_object_info_scale(), blender::ed::space_node::join_group_inputs(), blender::move_face_map_data_to_attributes(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::version_geometry_nodes_extrude_smooth_propagation(), and blender::write_libraries().
|
inline |
Definition at line 45 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 49 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 53 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 58 of file BLI_multi_value_map.hh.
|
inline |
Add all given values to the key.
Definition at line 73 of file BLI_multi_value_map.hh.
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 77 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 81 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 64 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 176 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 181 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 131 of file BLI_multi_value_map.hh.
|
inline |
NOTE: This signature will change when the implementation changes.
Definition at line 147 of file BLI_multi_value_map.hh.
|
inline |
NOTE: This signature will change when the implementation changes.
Definition at line 139 of file BLI_multi_value_map.hh.
Referenced by blender::bmo_weld_verts_exec(), blender::nodes::node_geo_sample_sound_frequencies_cc::SampleSoundFunction::call(), blender::nodes::compute_attributes_to_store(), blender::nodes::gizmos::foreach_active_gizmo_in_open_node_editor(), blender::move_face_map_data_to_attributes(), blender::tests::TEST(), and blender::tests::TEST().
|
inline |
NOTE: This signature will change when the implementation changes.
Definition at line 155 of file BLI_multi_value_map.hh.
Referenced by blender::nodes::gizmos::build_tree_gizmo_propagation(), 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 106 of file BLI_multi_value_map.hh.
|
inline |
Get a span to all the values that are stored for the given key.
Definition at line 90 of file BLI_multi_value_map.hh.
Referenced by blender::ed::space_node::add_link_and_make_visible(), blender::ed::asset::build_filtered_all_catalog_tree(), blender::xpbd::color_constraints(), blender::fix_geometry_nodes_object_info_scale(), blender::nodes::gizmos::foreach_gizmo_for_group_input(), 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(), blender::um_arraystore_compact(), blender::um_arraystore_expand(), blender::version_geometry_nodes_extrude_smooth_propagation(), and blender::write_library_if_needed().
|
inline |
Definition at line 110 of file BLI_multi_value_map.hh.
|
inline |
Definition at line 94 of file BLI_multi_value_map.hh.
|
inline |
Get the number of keys.
Definition at line 122 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 171 of file BLI_multi_value_map.hh.
|
inline |
NOTE: This signature will change when the implementation changes.
Definition at line 163 of file BLI_multi_value_map.hh.
Referenced by blender::ed::greasepencil::create_connected_edges_from_fill(), and blender::tests::TEST().
|
friend |