diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-25 16:19:02 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-25 16:19:02 +0200 |
commit | 696b97147c2e399be7a95cc5a983294eebc84ff0 (patch) | |
tree | d49b2da4fc656867f9ea007a43935001078d022e /src/interfaces | |
parent | ca3765ccbbcaee691d71e4f995ff639682d7346f (diff) |
refactor: make cell helper find_neighbour_cells return std::vector
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/cell_helper.hpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/interfaces/cell_helper.hpp b/src/interfaces/cell_helper.hpp index 141d905..d814aa7 100644 --- a/src/interfaces/cell_helper.hpp +++ b/src/interfaces/cell_helper.hpp @@ -8,6 +8,7 @@ #include <list> #include <memory> +#include <vector> // NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class ICellHelper @@ -22,14 +23,8 @@ public: get_birth_cell_positions(const std::list<Vector2> &cell_positions) const noexcept -> std::list<Vector2> = 0; - /* - [[nodiscard]] virtual auto - find_neighbour_cells(const Vector2 &cell_pos) const noexcept - -> std::list<Vector2> = 0; - */ - [[nodiscard]] virtual auto find_neighbours(const Vector2 &cell_pos) const noexcept - -> std::list<Vector2> = 0; + -> std::vector<Vector2> = 0; }; template <typename MatrixElement> |