Blender Git Loki
Git Commits -> Revision b53c46d
Revision b53c46d by Jacques Lucke (master) July 24, 2020, 10:15 (GMT) |
BLI: add MultiValueMap This is a convenience wrapper for `Map<Key, Vector<Value>>`. It does not provide any performance benefits (yet). I need this kind of map in a couple of places and before I was duplicating the lookup logic in many places. |
Commit Details:
Full Hash: b53c46d760568f02cd8be45547a4ffacad3c7b47
Parent Commit: 141deee
Lines Changed: +277, -60
2 Added Paths:
/source/blender/blenlib/BLI_multi_value_map.hh (+133, -0) (View)
/source/blender/blenlib/tests/BLI_multi_value_map_test.cc (+109, -0) (View)
/source/blender/blenlib/tests/BLI_multi_value_map_test.cc (+109, -0) (View)
9 Modified Paths:
/source/blender/blenlib/CMakeLists.txt (+1, -0) (Diff)
/source/blender/functions/intern/multi_function_network_optimization.cc (+7, -6) (Diff)
/source/blender/nodes/intern/derived_node_tree.cc (+1, -1) (Diff)
/source/blender/nodes/intern/node_tree_ref.cc (+1, -1) (Diff)
/source/blender/nodes/NOD_derived_node_tree.hh (+2, -8) (Diff)
/source/blender/nodes/NOD_node_tree_ref.hh (+3, -8) (Diff)
/source/blender/simulation/intern/simulation_collect_influences.cc (+14, -15) (Diff)
/source/blender/simulation/intern/simulation_solver.cc (+1, -1) (Diff)
/source/blender/simulation/intern/simulation_solver_influences.hh (+5, -20) (Diff)
/source/blender/functions/intern/multi_function_network_optimization.cc (+7, -6) (Diff)
/source/blender/nodes/intern/derived_node_tree.cc (+1, -1) (Diff)
/source/blender/nodes/intern/node_tree_ref.cc (+1, -1) (Diff)
/source/blender/nodes/NOD_derived_node_tree.hh (+2, -8) (Diff)
/source/blender/nodes/NOD_node_tree_ref.hh (+3, -8) (Diff)
/source/blender/simulation/intern/simulation_collect_influences.cc (+14, -15) (Diff)
/source/blender/simulation/intern/simulation_solver.cc (+1, -1) (Diff)
/source/blender/simulation/intern/simulation_solver_influences.hh (+5, -20) (Diff)