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