diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-01 17:27:49 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-01 17:27:49 +0200 |
commit | 578cf43e9c8384aab463aa2a33c5be00e46dc999 (patch) | |
tree | 927262a92b7ff0365463327130de78722578aa03 /src/interfaces/matrix.hpp | |
parent | ae15df6689b1245200f8a9eb074c59a200561e49 (diff) |
refactor: matrix add get_size method
Diffstat (limited to 'src/interfaces/matrix.hpp')
-rw-r--r-- | src/interfaces/matrix.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/interfaces/matrix.hpp b/src/interfaces/matrix.hpp index 8edad80..6a6966e 100644 --- a/src/interfaces/matrix.hpp +++ b/src/interfaces/matrix.hpp @@ -1,13 +1,12 @@ #pragma once +#include <memory> +#include <yacppdic/factory.hpp> + #include "engine/data/bounds.hpp" #include "engine/data/vector2.hpp" #include "engine/graphics/matrix_iterator.hpp" -#include <yacppdic/factory.hpp> - -#include <memory> - template <typename ElementType> // NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class IMatrix @@ -27,6 +26,8 @@ public: [[nodiscard]] virtual auto get_column_cnt() const noexcept -> std::uint32_t = 0; + [[nodiscard]] virtual auto get_size() const noexcept -> Bounds = 0; + [[nodiscard]] virtual auto begin() const noexcept -> MatrixIterator<Element> = 0; [[nodiscard]] virtual auto end() const noexcept -> MatrixIterator<Element> = 0; |