17template<
typename TCoordinate,
typename TEdge>
30 explicit SquareGrid8(TCoordinate height, TCoordinate width);
59 std::string
name()
const override;
67template<
typename TCoordinate,
typename TEdge>
69 :
SquareGrid<TCoordinate, TEdge>(height, width) {
74template<
typename TCoordinate,
typename TEdge>
82template<
typename TCoordinate,
typename TEdge>
89template<
typename TCoordinate,
typename TEdge>
108template<
typename TCoordinate,
typename TEdge>
118 grid.addObstacle(std::move(obstacle));
Class extending the pair class from the standard library. Original reason is to allow printing of the...
Definition: pair.hpp:43
static ext::pair< DefaultCoordinateType, DefaultCoordinateType > normalizeObstacle(ext::pair< TCoordinate, TCoordinate > &&obstacle)
Definition: Normalize.hpp:82
TCoordinate coordinate_type
Definition: GridInterface.hpp:23
TEdge edge_type
Definition: GridInterface.hpp:24
Definition: SquareGrid8.hpp:18
SquareGridDirections direction_type
Definition: SquareGrid8.hpp:25
SquareGrid8(TCoordinate height, TCoordinate width)
Definition: SquareGrid8.hpp:68
bool operator==(const SquareGrid8 &other) const
Definition: SquareGrid8.hpp:39
std::string name() const override
Definition: SquareGrid8.hpp:90
bool isValidDirection(direction_type direction) const override
Definition: SquareGrid8.hpp:83
auto operator<=>(const SquareGrid8 &other) const
Definition: SquareGrid8.hpp:35
ext::pair< TCoordinate, TCoordinate > node_type
Definition: SquareGrid8.hpp:24
TEdge createEdge(const node_type &a, const node_type &b) const override
Definition: SquareGrid8.hpp:75
Definition: SquareGrid.hpp:29
TCoordinate getHeight() const
Definition: SquareGrid.hpp:155
TCoordinate getWidth() const
Definition: SquareGrid.hpp:160
TCoordinate m_height
Definition: SquareGrid.hpp:41
TCoordinate m_width
Definition: SquareGrid.hpp:42
ext::set< node_type > m_obstacles
Definition: SquareGrid.hpp:43
const ext::set< node_type > & getObstacleList() const &
Definition: SquareGrid.hpp:142
int i
Definition: AllEpsilonClosure.h:118
Definition: normalize.hpp:10
constexpr tuple< Elements &... > tie(Elements &... args) noexcept
Helper of extended tuple of references construction. The tuple is constructed to reffer to values in ...
Definition: tuple.hpp:218
reference_mover< T > make_mover(T ¶m)
Move adaptor construction function specialized to lvalue reference parameter.
Definition: iterator.hpp:468
Definition: GridDirection.hpp:12
const ext::set< SquareGridDirections > SQUARE_GRID_DIRECTIONS
Definition: GridDirection.hpp:28
SquareGridDirections
Definition: GridDirection.hpp:16
static grid::SquareGrid8 eval(grid::SquareGrid8< TCoordinate, TEdge > &&value)
Definition: SquareGrid8.hpp:110
Definition: normalize.hpp:13