24 #define GRID_BOUNDS_DEBUG 0
26 #define GRID_BOUNDS_DEBUG 1
85 void set(
int i,
int j,
const T& value)
93 T&
get(
int i,
int j)
const
149 for (
size_t i = 0; i < (size_t)(
m_BW*
m_BH); ++i)
155 void set(
int i,
int j,
const T& value)
157 #if GRID_BOUNDS_DEBUG
165 #if GRID_BOUNDS_DEBUG
178 #endif // INCLUDED_GRID
Grid & operator=(const Grid &g)
Similar to Grid, except optimised for sparse usage (the grid is subdivided into buckets whose content...
Basic 2D array, intended for storing tile data, plus support for lazy updates by ICmpObstructionManag...
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
#define T(string_literal)
void set(int i, int j, const T &value)
void set(int i, int j, const T &value)
T * GetBucket(int i, int j)