aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/matrix.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/matrix.hpp')
-rw-r--r--src/interfaces/matrix.hpp9
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;