Just a little wrapper to allow vectors to be handled as 2D arrays, which simplifie some stuff in GrammarHypothesis.
More...
|
| | Vector2D () |
| |
| | Vector2D (int x, int y) |
| |
| | Vector2D (int x, int y, T b) |
| |
| bool | inbounds (int x, int y) |
| |
| void | fill (T x) |
| |
| void | resize (const int x, const int y) |
| |
| void | reserve (const int x, const int y) |
| |
| void | insert_y (const int y_at, T b) |
| |
| void | insert_x (const int x_at, T b) |
| |
| void | delete_y (const int y_at) |
| |
| void | delete_x (const int x_at) |
| |
| const T & | at (const int x, const int y) const |
| |
| T & | at (const int x, const int y) |
| |
| T & | operator() (const int x, const int y) const |
| |
| const T & | operator() (const int x, const int y) |
| |
| void | set (const int x, const int y, const T &val) |
| |
| void | set (const int x, const int y, const T &&val) |
| |
| T | get (const int x, const int y) |
| |
| template<typename X > |
| void | operator[] (X x) |
| |
| std::string | string () |
| |
template<typename T>
class Vector2D< T >
Just a little wrapper to allow vectors to be handled as 2D arrays, which simplifie some stuff in GrammarHypothesis.
- Author
- Steven Piantadosi
- Date
- 09/08/20
- Author
- Steven Piantadosi
- Date
- 03/05/22