![]() |
Bridges-C++
3.1.1
Bridges(C++API)
|
#include <Grid.h>
This is a class in BRIDGES for representing an (n x n) grid.
This class will be useful in applications such as image processing, board games, etc.
| E | There is a tutorial about Grid : http://bridgesuncc.github.io/tutorials/Grid.html |
Classes | |
| class | BracketHelper |
| class | BracketHelperConst |
Public Member Functions | |
| virtual const string | getDStype () const override |
| Grid (int rows, int cols) | |
| Grid () | |
| Grid (int *size) | |
| Grid (const Grid &g) | |
| virtual | ~Grid () |
| Grid & | operator= (const Grid &g) |
| void | setDimensions (int rows, int cols) |
| int const * | getDimensions () |
| E const & | get (int row, int col) const |
| void | set (int row, int col, E val) |
| BracketHelperConst | operator[] (int row) const |
| provides the necessary abstraction to do something = grid[x][y]; More... | |
| BracketHelper | operator[] (int row) |
| provides the necessary abstraction to do grid[x][y] = something; More... | |
Public Member Functions inherited from bridges::datastructure::DataStructure | |
| virtual | ~DataStructure ()=default |
Protected Attributes | |
| E ** | grid = nullptr |
| int | gridSize [2] |
| int | maxGridSize [2] = {1080, 1920} |
|
inline |
Grid constructors
|
inline |
|
inlineexplicit |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements bridges::datastructure::DataStructure.
Reimplemented in bridges::game::GameGrid, and bridges::datastructure::ColorGrid.
|
inline |
|
inline |
provides the necessary abstraction to do something = grid[x][y];
|
inline |
provides the necessary abstraction to do grid[x][y] = something;
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
1.8.13