|
| | Grid () |
| |
| | Grid (u16 w, u16 h) |
| |
| | Grid (const Grid &g) |
| |
| void | copy_data (T *o, default_type) |
| |
| void | copy_data (T *o, is_pod) |
| |
| Grid & | operator= (const Grid &g) |
| |
| void | swap (Grid &g) |
| |
| | ~Grid () |
| |
| bool | compare_data (T *o, default_type) const |
| |
| bool | compare_data (T *o, is_pod) const |
| |
| bool | operator== (const Grid &g) const |
| |
| bool | operator!= (const Grid &g) const |
| |
| bool | blank () const |
| |
| u16 | width () const |
| |
| u16 | height () const |
| |
| bool | _any_set_in_square (int, int, int, int, default_type) const |
| |
| bool | _any_set_in_square (int i0, int j0, int i1, int j1, is_pod) const |
| |
| bool | any_set_in_square (int i0, int j0, int i1, int j1) const |
| |
| void | reset_data (default_type) |
| |
| void | reset_data (is_pod) |
| |
| void | reset () |
| |
| void | clear () |
| |
| void | resize (u16 w, u16 h) |
| |
| void | add (const Grid &g) |
| |
| void | bitwise_or (const Grid &g) |
| |
| void | set (int i, int j, const T &value) |
| |
| T & | operator[] (std::pair< u16, u16 > coords) |
| |
| T & | get (std::pair< u16, u16 > coords) |
| |
| T & | operator[] (std::pair< u16, u16 > coords) const |
| |
| T & | get (std::pair< u16, u16 > coords) const |
| |
| T & | get (int i, int j) |
| |
| T & | get (int i, int j) const |
| |
| template<typename U > |
| bool | compare_sizes (const Grid< U > *g) const |
| |
template<typename
T>
class Grid< T >
Basic 2D array, intended for storing tile data, plus support for lazy updates by ICmpObstructionManager.
T must be a POD type that can be initialised with 0s.