Blender Git Commit Log

Git Commits -> Revision 68cc982

Revision 68cc982 by Jacques Lucke (master)
February 10, 2020, 13:09 (GMT)
BLI: improve various C++ data structures

The changes come from the `functions` branch, where I'm using
these structures a lot.

This also includes a new `BLI::Optional<T>` type, which is similar
to `std::Optional<T>` which can be used when Blender starts using
C++17.

Commit Details:

Full Hash: 68cc982dcb7c1063a96f7ec9b7ccb95da4919d6b
Parent Commit: 76208a5
Lines Changed: +811, -288

2 Added Paths:

/source/blender/blenlib/BLI_optional.h (+196, -0) (View)
/tests/gtests/blenlib/BLI_optional_test.cc (+74, -0) (View)

3 Deleted Paths:

/source/blender/blenlib/BLI_temporary_allocator.h (+0, -64)
/source/blender/blenlib/BLI_temporary_allocator_cxx.h (+0, -38)
/source/blender/blenlib/intern/BLI_temporary_allocator.cc (+0, -115)

25 Modified Paths:

/source/blender/blenlib/BLI_allocator.h (+0, -25) (Diff)
/source/blender/blenlib/BLI_array_cxx.h (+49, -18) (Diff)
/source/blender/blenlib/BLI_array_ref.h (+114, -5) (Diff)
/source/blender/blenlib/BLI_hash_cxx.h (+1, -0) (Diff)
/source/blender/blenlib/BLI_index_range.h (+15, -0) (Diff)
/source/blender/blenlib/BLI_kdtree.h (+8, -0) (Diff)
/source/blender/blenlib/BLI_listbase_wrapper.h (+13, -0) (Diff)
/source/blender/blenlib/BLI_map.h (+13, -0) (Diff)
/source/blender/blenlib/BLI_memory_utils_cxx.h (+37, -0) (Diff)
/source/blender/blenlib/BLI_open_addressing.h (+2, -2) (Diff)
/source/blender/blenlib/BLI_rand.h (+2, -0) (Diff)
/source/blender/blenlib/BLI_stack_cxx.h (+7, -2) (Diff)
/source/blender/blenlib/BLI_string_map.h (+45, -1) (Diff)
/source/blender/blenlib/BLI_string_ref.h (+8, -0) (Diff)
/source/blender/blenlib/BLI_vector.h (+61, -6) (Diff)
/source/blender/blenlib/BLI_vector_set.h (+3, -3) (Diff)
/source/blender/blenlib/CMakeLists.txt (+1, -3) (Diff)
/source/blender/blenlib/intern/BLI_index_range.cc (+2, -2) (Diff)
/tests/gtests/blenlib/BLI_array_ref_test.cc (+55, -1) (Diff)
/tests/gtests/blenlib/BLI_index_range_test.cc (+9, -0) (Diff)
/tests/gtests/blenlib/BLI_stack_cxx_test.cc (+13, -2) (Diff)
/tests/gtests/blenlib/BLI_string_map_test.cc (+25, -1) (Diff)
/tests/gtests/blenlib/BLI_string_ref_test.cc (+9, -0) (Diff)
/tests/gtests/blenlib/BLI_vector_test.cc (+48, -0) (Diff)
/tests/gtests/blenlib/CMakeLists.txt (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021