]> OCCT Git - occt.git/commit
Foundation Classes - Implement move semantics for math_Matrix and math_Vector (... IR master
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Mon, 24 Nov 2025 11:14:19 +0000 (11:14 +0000)
committerGitHub <noreply@github.com>
Mon, 24 Nov 2025 11:14:19 +0000 (11:14 +0000)
commit6730c842bd6aad8bce11942412cc3261799bc2bf
tree6436eb34a0ae1970e109d0388bf2d3c7e135bf96
parent845e75e598a790a02768def2c0eff2d258f65f6f
 Foundation Classes - Implement move semantics for math_Matrix and math_Vector (#841)

- Added move constructors and move assignment operators to `math_VectorBase`, `math_Matrix`, and `math_DoubleTab`
- Optimized move operations to avoid unnecessary copying when dimensions match and both objects use heap allocation
- Added comprehensive test coverage for move semantics with both heap-allocated (large) and buffer-allocated (small) objects
src/FoundationClasses/TKMath/GTests/math_Matrix_Test.cxx
src/FoundationClasses/TKMath/GTests/math_Vector_Test.cxx
src/FoundationClasses/TKMath/math/math_DoubleTab.hxx
src/FoundationClasses/TKMath/math/math_Matrix.hxx
src/FoundationClasses/TKMath/math/math_Matrix.lxx
src/FoundationClasses/TKMath/math/math_VectorBase.hxx
src/FoundationClasses/TKMath/math/math_VectorBase.lxx