From 7e84d664079d9c407bdf94861825bb05ccf1b0f7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 8 Jun 2022 16:47:48 +0200 Subject: refactor: move matrix iterator to engine graphics folder --- src/engine/matrix_iterator.hpp | 65 ------------------------------------------ 1 file changed, 65 deletions(-) delete mode 100644 src/engine/matrix_iterator.hpp (limited to 'src/engine/matrix_iterator.hpp') diff --git a/src/engine/matrix_iterator.hpp b/src/engine/matrix_iterator.hpp deleted file mode 100644 index 70a59bf..0000000 --- a/src/engine/matrix_iterator.hpp +++ /dev/null @@ -1,65 +0,0 @@ -#pragma once - -#include - -template -class MatrixRowIterator -{ -public: - using ColumnPtr = gsl::owner; - - explicit MatrixRowIterator(ColumnPtr column_ptr) noexcept; - - auto operator++() noexcept -> MatrixRowIterator &; - auto operator++(int) noexcept -> MatrixRowIterator; - - auto operator*() const noexcept -> Element &; - - auto operator==(const MatrixRowIterator &rhs) const noexcept -> bool; - auto operator!=(const MatrixRowIterator &rhs) const noexcept -> bool; - -private: - ColumnPtr _column_ptr; -}; - -template -class MatrixRow -{ -public: - using RowPtr = gsl::owner; - - explicit MatrixRow(RowPtr row_ptr, const uint32_t &column_cnt) noexcept; - - [[nodiscard]] auto begin() const noexcept -> MatrixRowIterator; - - [[nodiscard]] auto end() const noexcept -> MatrixRowIterator; - -private: - RowPtr _row_ptr; - - const uint32_t &_column_cnt; -}; - -template -class MatrixIterator -{ -public: - using RowPtr = gsl::owner; - - explicit MatrixIterator(RowPtr row_ptr, const uint32_t &column_cnt) noexcept; - - auto operator++() noexcept -> MatrixIterator &; - auto operator++(int) noexcept -> MatrixIterator; - - auto operator*() const noexcept -> MatrixRow; - - auto operator==(const MatrixIterator &rhs) const noexcept -> bool; - auto operator!=(const MatrixIterator &rhs) const noexcept -> bool; - -private: - RowPtr _row_ptr; - - const uint32_t &_column_cnt; -}; - -#include "matrix_iterator_impl.hpp" -- cgit v1.2.3-18-g5258