Basic 2D array, intended for storing tile data, plus support for lazy updates by ICmpObstructionManager.
More...
#include <TerritoryBoundary.h>
|
| 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.
◆ dispatch
template<typename T>
template<typename U >
◆ if_
template<typename T>
template<typename U , typename A , typename B >
using Grid< T >::if_ = typename std::conditional<U::value, A, B>::type |
|
protected |
◆ value_type
◆ Grid() [1/3]
◆ Grid() [2/3]
◆ Grid() [3/3]
◆ ~Grid()
◆ _any_set_in_square() [1/2]
◆ _any_set_in_square() [2/2]
template<typename T>
bool Grid< T >::_any_set_in_square |
( |
int |
i0, |
|
|
int |
j0, |
|
|
int |
i1, |
|
|
int |
j1, |
|
|
is_pod |
|
|
) |
| const |
|
inline |
◆ add()
◆ any_set_in_square()
template<typename T>
bool Grid< T >::any_set_in_square |
( |
int |
i0, |
|
|
int |
j0, |
|
|
int |
i1, |
|
|
int |
j1 |
|
) |
| const |
|
inline |
◆ bitwise_or()
◆ blank()
template<typename T>
bool Grid< T >::blank |
( |
| ) |
const |
|
inline |
◆ clear()
template<typename T>
void Grid< T >::clear |
( |
| ) |
|
|
inline |
◆ compare_data() [1/2]
◆ compare_data() [2/2]
◆ compare_sizes()
template<typename T>
template<typename U >
bool Grid< T >::compare_sizes |
( |
const Grid< U > * |
g | ) |
const |
|
inline |
◆ copy_data() [1/2]
◆ copy_data() [2/2]
◆ get() [1/4]
◆ get() [2/4]
◆ get() [3/4]
template<typename T>
T& Grid< T >::get |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
|
inline |
◆ get() [4/4]
template<typename T>
T& Grid< T >::get |
( |
int |
i, |
|
|
int |
j |
|
) |
| const |
|
inline |
◆ height()
◆ operator!=()
template<typename T>
bool Grid< T >::operator!= |
( |
const Grid< T > & |
g | ) |
const |
|
inline |
◆ operator=()
◆ operator==()
template<typename T>
bool Grid< T >::operator== |
( |
const Grid< T > & |
g | ) |
const |
|
inline |
◆ operator[]() [1/2]
◆ operator[]() [2/2]
template<typename T>
T& Grid< T >::operator[] |
( |
std::pair< u16, u16 > |
coords | ) |
const |
|
inline |
◆ reset()
template<typename T>
void Grid< T >::reset |
( |
| ) |
|
|
inline |
◆ reset_data() [1/2]
◆ reset_data() [2/2]
◆ resize()
◆ set()
template<typename T>
void Grid< T >::set |
( |
int |
i, |
|
|
int |
j, |
|
|
const T & |
value |
|
) |
| |
|
inline |
◆ swap()
◆ width()
◆ SerializeHelper< Grid< T > >
◆ m_Data
◆ m_H
◆ m_W
The documentation for this class was generated from the following files: