|
| | grid (unsigned int rows=1u, unsigned int columns=1u, unsigned int levels=1u) |
| | Construct a grid using unsigned integers.
|
| |
| | grid (std::tuple< unsigned int, unsigned int, unsigned int > dimens) |
| | Construct a grid using a tuple of unsigned integers.
|
| |
| | 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.
|
| |
| 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 |
| | Get the dimensions of the grid.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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 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 void | set_str (std::string const &str) noexcept override |
| |
| virtual std::string | get_str () const noexcept override |
| |
| virtual std::vector< std::tuple< int, int, int, int > > | get_vertices () const noexcept override |
| | Get the vertices for wavefront object file generation.
|
| |
| virtual void | set_vertices (const std::vector< std::tuple< int, int, int, int > > &vertices) noexcept override |
| | Set the vertices for wavefront object file generation.
|
| |
| virtual std::vector< std::vector< std::uint32_t > > | get_faces () const noexcept override |
| | Get the faces for wavefront object file generation.
|
| |
| virtual void | set_faces (const std::vector< std::vector< std::uint32_t > > &faces) noexcept override |
| | Set the faces for wavefront object file generation.
|
| |
|
virtual | ~grid_operations ()=default |
| | Destroys the grid_operations object and releases any associated resources.
|
| |
General purpose grid class for 2D maze generation.