|
| colored_grid (unsigned int width=1u, unsigned int length=1u, unsigned int levels=1u) |
| Constructs a colored grid with specified dimensions.
|
|
virtual std::optional< std::string > | contents_of (const std::shared_ptr< cell > &c) const noexcept override |
| Retrieves the contents of a given cell, if available.
|
|
virtual std::optional< std::uint32_t > | background_color_for (const std::shared_ptr< cell > &c) const noexcept override |
| Retrieves the background color for a given cell, if available.
|
|
| distance_grid (unsigned int width=1u, unsigned int length=1u, unsigned int levels=1u) |
|
std::shared_ptr< distances > | get_distances () const noexcept |
|
virtual std::future< bool > | get_future () noexcept override |
| Initialize and configure.
|
|
| grid (unsigned int rows=1u, unsigned int columns=1u, unsigned int height=1u) |
| Constructor for grid.
|
|
| grid (std::tuple< unsigned int, unsigned int, unsigned int > dimensions) |
| Constructor for grid.
|
|
| grid (const grid &other) |
| Copy constructor.
|
|
grid & | operator= (const grid &other) |
| Assignment operator.
|
|
| grid (grid &&other) noexcept |
| Move constructor.
|
|
grid & | operator= (grid &&other) noexcept |
| Move assignment operator.
|
|
virtual | ~grid () |
| Destructor.
|
|
virtual std::tuple< unsigned int, unsigned int, unsigned int > | get_dimensions () const noexcept override |
| Provides dimensions of grid in no assumed ordering.
|
|
virtual void | to_vec (std::vector< std::shared_ptr< cell > > &cells) const noexcept override |
| Convert a 2D grid to a vector of cells (sorted by row then column)
|
|
virtual void | to_vec2 (std::vector< std::vector< std::shared_ptr< cell > > > &cells) const noexcept override |
| Convert a 2D grid to a vector of vectors of cells (sorted by row then column)
|
|
std::shared_ptr< cell > | search (int index) const noexcept |
|
int | count () const noexcept |
| Get the count of cells in the grid.
|
|
Extension of the grid class to include color information.