17template<
typename TCoordinate,
typename TEdge>
30 explicit SquareGrid4(TCoordinate height, TCoordinate width);
61 std::string
name()
const override;
69template<
typename TCoordinate,
typename TEdge>
71 :
SquareGrid<TCoordinate, TEdge>(height, width) {
76template<
typename TCoordinate,
typename TEdge>
91template<
typename TCoordinate,
typename TEdge>
99template<
typename TCoordinate,
typename TEdge>
101 return "SquareGrid4";
118template<
typename TCoordinate,
typename TEdge>
128 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: SquareGrid4.hpp:18
std::string name() const override
Definition: SquareGrid4.hpp:100
SquareGrid4(TCoordinate height, TCoordinate width)
Definition: SquareGrid4.hpp:70
TEdge createEdge(const node_type &a, const node_type &b) const override
Definition: SquareGrid4.hpp:92
bool operator==(const SquareGrid4 &other) const
Definition: SquareGrid4.hpp:39
auto operator<=>(const SquareGrid4 &other) const
Definition: SquareGrid4.hpp:35
SquareGridDirections direction_type
Definition: SquareGrid4.hpp:25
ext::pair< TCoordinate, TCoordinate > node_type
Definition: SquareGrid4.hpp:24
bool isValidDirection(direction_type direction) const override
Definition: SquareGrid4.hpp:77
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
SquareGridDirections
Definition: GridDirection.hpp:16
static grid::SquareGrid4 eval(grid::SquareGrid4< TCoordinate, TEdge > &&value)
Definition: SquareGrid4.hpp:120
Definition: normalize.hpp:13