A grid that can calculate distances between cells.
More...
#include <distance_grid.h>
A grid that can calculate distances between cells.
◆ background_color_for()
| std::uint32_t mazes::distance_grid::background_color_for |
( |
std::shared_ptr< cell > const & | c | ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ calculate_distances()
| void mazes::distance_grid::calculate_distances |
( |
int | start_index, |
|
|
int | end_index ) |
|
noexcept |
Calculates distances for a range of indices.
- Parameters
-
| start_index | The starting index of the range (inclusive). |
| end_index | The ending index of the range (exclusive). |
◆ contents_of()
| std::string mazes::distance_grid::contents_of |
( |
std::shared_ptr< cell > const & | c | ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ get_distances()
| std::shared_ptr< distances > mazes::distance_grid::get_distances |
( |
| ) |
const |
|
nodiscardnoexcept |
Get the distances object.
- Returns
- A shared pointer to the distances object
◆ operations() [1/2]
|
|
nodiscardoverridevirtualnoexcept |
Get access to const grid operations interface.
- Returns
- A const reference to the grid operations interface
Implements mazes::grid_interface.
◆ operations() [2/2]
|
|
nodiscardoverridevirtualnoexcept |
Get access to grid operations interface.
- Returns
- A reference to the grid operations interface
Implements mazes::grid_interface.
◆ resize()
| void mazes::distance_grid::resize |
( |
unsigned int | rows, |
|
|
unsigned int | cols, |
|
|
unsigned int | levels ) const |
|
noexcept |
Resize the grid.
- Parameters
-
The documentation for this class was generated from the following file: