|
| grid (unsigned int r=1u, unsigned int c=1u, unsigned int l=1u) |
|
| grid (std::tuple< unsigned int, unsigned int, unsigned int > dimens) |
|
| 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.
|
|
| ~grid () override |
| Destructor.
|
|
virtual std::string | contents_of (std::shared_ptr< cell >const &c) const noexcept override |
| Get detailed information of a cell in the grid.
|
|
virtual std::uint32_t | background_color_for (std::shared_ptr< cell > const &c) const noexcept override |
| Get the background color for a cell in the grid.
|
|
grid_operations & | operations () noexcept override |
|
const grid_operations & | operations () const noexcept override |
|
std::tuple< unsigned int, unsigned int, unsigned int > | get_dimensions () const noexcept override |
| Retrieves the dimensions as a tuple of three unsigned integers.
|
|
virtual std::shared_ptr< cell > | get_neighbor (std::shared_ptr< cell > const &c, Direction dir) const noexcept override |
| Get neighbor by the cell's respective location.
|
|
virtual std::vector< std::shared_ptr< cell > > | get_neighbors (std::shared_ptr< cell > const &c) const noexcept override |
| Get all the neighbors by the cell.
|
|
virtual void | set_neighbor (const std::shared_ptr< cell > &c, Direction dir, std::shared_ptr< cell > const &neighbor) noexcept override |
| Set neighbor for a cell in a given direction.
|
|
void | sort (std::vector< std::shared_ptr< cell > > &cells) const noexcept override |
| Transformation and display cells.
|
|
virtual std::shared_ptr< cell > | get_north (const std::shared_ptr< cell > &c) const noexcept override |
|
virtual std::shared_ptr< cell > | get_south (const std::shared_ptr< cell > &c) const noexcept override |
|
virtual std::shared_ptr< cell > | get_east (const std::shared_ptr< cell > &c) const noexcept override |
|
virtual std::shared_ptr< cell > | get_west (const std::shared_ptr< cell > &c) const noexcept override |
|
virtual std::shared_ptr< cell > | search (int index) const noexcept override |
| Search for a cell by index.
|
|
virtual std::vector< std::shared_ptr< cell > > | get_cells () const noexcept override |
| Retrieves a collection of cell objects.
|
|
virtual int | num_cells () const noexcept override |
| Get the count of cells in the grid.
|
|
virtual void | clear_cells () noexcept override |
| Cleanup cells by cleaning up links within cells.
|
|
virtual bool | set_cells (const std::vector< std::shared_ptr< cell > > &cells) noexcept override |
| Set cells and build topology from them.
|
|
virtual void | set_str (std::string const &str) noexcept override |
|
virtual std::string | get_str () const noexcept override |
|
virtual | ~grid_operations ()=default |
| Destroys the grid_operations object and releases any associated resources.
|
|
General purpose grid class for 2D maze generation.