Blender Git Commit Log
Git Commits -> Revision 4022d87
Revision 4022d87 by Jacques Lucke (builtin-simulation-nodes, functions, functions-experimental-refactor, particle-solver-dev, simulation-tree) August 6, 2019, 09:54 (GMT) |
New list implementation Instead of using a templated list, it is easier to use a "generic" list, that can handle every type with a CPPTypeInfo extension. This simplifies the code quite a bit, because templates can be avoided in many places. This also makes it easier to add new types. The list will still be refcounted and still have the shared immutability semantic. So when a list has more than one user, it is immutable. |
Commit Details:
Full Hash: 4022d8784c305b57d75bafdb35535f02960dc6d1
Parent Commit: a0364a6
Lines Changed: +802, -833
5 Added Paths:
/source/blender/blenlib/BLI_refcount.hpp (+183, -0) (View)
/source/blender/functions/backends/tuple/list.cpp (+22, -0) (View)
/source/blender/functions/backends/tuple/list.hpp (+155, -0) (View)
/source/blender/functions/types/lists.cpp (+88, -0) (View)
/tests/gtests/blenlib/BLI_refcount_test.cc (+135, -0) (View)
/source/blender/functions/backends/tuple/list.cpp (+22, -0) (View)
/source/blender/functions/backends/tuple/list.hpp (+155, -0) (View)
/source/blender/functions/types/lists.cpp (+88, -0) (View)
/tests/gtests/blenlib/BLI_refcount_test.cc (+135, -0) (View)
5 Deleted Paths:
/source/blender/blenlib/BLI_shared.hpp (+0, -188)
/source/blender/blenlib/BLI_shared_immutable.hpp (+0, -71)
/source/blender/functions/types/numeric_lists.cpp (+0, -70)
/source/blender/functions/types/numeric_lists.hpp (+0, -27)
/tests/gtests/blenlib/BLI_shared_test.cc (+0, -135)
/source/blender/blenlib/BLI_shared_immutable.hpp (+0, -71)
/source/blender/functions/types/numeric_lists.cpp (+0, -70)
/source/blender/functions/types/numeric_lists.hpp (+0, -27)
/tests/gtests/blenlib/BLI_shared_test.cc (+0, -135)
28 Modified Paths:
/source/blender/blenlib/CMakeLists.txt (+1, -1) (Diff)
/source/blender/functions/backends/tuple/cpp_type_info.hpp (+1, -1) (Diff)
/source/blender/functions/backends/tuple/tuple-c.cpp (+24, -2) (Diff)
/source/blender/functions/backends/tuple/tuple-c.h (+7, -0) (Diff)
/source/blender/functions/backends/tuple/tuple.hpp (+1, -1) (Diff)
/source/blender/functions/CMakeLists.txt (+3, -2) (Diff)
/source/blender/functions/core/core-c.cpp (+10, -0) (Diff)
/source/blender/functions/core/core-c.h (+3, -0) (Diff)
/source/blender/functions/core/data_graph.hpp (+1, -1) (Diff)
/source/blender/functions/core/function.hpp (+1, -1) (Diff)
/source/blender/functions/core/type.hpp (+2, -2) (Diff)
/source/blender/functions/FN_tuple.hpp (+1, -0) (Diff)
/source/blender/functions/FN_types.hpp (+1, -1) (Diff)
/source/blender/functions/frontends/data_flow_nodes/mappings/socket_loaders.cpp (+12, -9) (Diff)
/source/blender/functions/functions/auto_vectorization.cpp (+23, -13) (Diff)
/source/blender/functions/functions/lists.cpp (+87, -103) (Diff)
/source/blender/functions/functions/lists.hpp (+0, -8) (Diff)
/source/blender/functions/functions/object_input.cpp (+5, -3) (Diff)
/source/blender/functions/functions/ranges.cpp (+5, -2) (Diff)
/source/blender/functions/types/lists.hpp (+8, -105) (Diff)
/source/blender/functions/types/tuple_access-c.cpp (+2, -8) (Diff)
/source/blender/functions/types/tuple_access-c.h (+1, -2) (Diff)
/source/blender/functions/types/types-c.cpp (+0, -27) (Diff)
/source/blender/functions/types/types-c.h (+1, -23) (Diff)
/source/blender/modifiers/intern/MOD_functionpoints.c (+4, -4) (Diff)
/source/blender/simulations/bparticles/emitters.cpp (+12, -20) (Diff)
/source/blender/simulations/bparticles/inserters.cpp (+2, -2) (Diff)
/tests/gtests/blenlib/CMakeLists.txt (+1, -1) (Diff)
/source/blender/functions/backends/tuple/cpp_type_info.hpp (+1, -1) (Diff)
/source/blender/functions/backends/tuple/tuple-c.cpp (+24, -2) (Diff)
/source/blender/functions/backends/tuple/tuple-c.h (+7, -0) (Diff)
/source/blender/functions/backends/tuple/tuple.hpp (+1, -1) (Diff)
/source/blender/functions/CMakeLists.txt (+3, -2) (Diff)
/source/blender/functions/core/core-c.cpp (+10, -0) (Diff)
/source/blender/functions/core/core-c.h (+3, -0) (Diff)
/source/blender/functions/core/data_graph.hpp (+1, -1) (Diff)
/source/blender/functions/core/function.hpp (+1, -1) (Diff)
/source/blender/functions/core/type.hpp (+2, -2) (Diff)
/source/blender/functions/FN_tuple.hpp (+1, -0) (Diff)
/source/blender/functions/FN_types.hpp (+1, -1) (Diff)
/source/blender/functions/frontends/data_flow_nodes/mappings/socket_loaders.cpp (+12, -9) (Diff)
/source/blender/functions/functions/auto_vectorization.cpp (+23, -13) (Diff)
/source/blender/functions/functions/lists.cpp (+87, -103) (Diff)
/source/blender/functions/functions/lists.hpp (+0, -8) (Diff)
/source/blender/functions/functions/object_input.cpp (+5, -3) (Diff)
/source/blender/functions/functions/ranges.cpp (+5, -2) (Diff)
/source/blender/functions/types/lists.hpp (+8, -105) (Diff)
/source/blender/functions/types/tuple_access-c.cpp (+2, -8) (Diff)
/source/blender/functions/types/tuple_access-c.h (+1, -2) (Diff)
/source/blender/functions/types/types-c.cpp (+0, -27) (Diff)
/source/blender/functions/types/types-c.h (+1, -23) (Diff)
/source/blender/modifiers/intern/MOD_functionpoints.c (+4, -4) (Diff)
/source/blender/simulations/bparticles/emitters.cpp (+12, -20) (Diff)
/source/blender/simulations/bparticles/inserters.cpp (+2, -2) (Diff)
/tests/gtests/blenlib/CMakeLists.txt (+1, -1) (Diff)