Public Types |
typedef std::vector< CellType > | Cells |
typedef std::pair< unsigned
int, unsigned int > | Indices |
typedef std::pair< int, int > | SignedIndices |
typedef CellType | value_type |
Public Member Functions |
const Cells & | getCells () const |
Cells & | getCells () |
const unsigned int & | getHeight () const |
void | getNeighbors (Cells &cells, const SignedIndices &indices, unsigned int neighborhoodRadius) const |
const unsigned int & | getWidth () const |
| Grid2D () |
| Grid2D (const unsigned int &width, const unsigned int &height, const CellType &c=CellType()) |
Cells::const_reference | operator() (unsigned int w, unsigned int h) const |
Cells::reference | operator() (unsigned int w, unsigned int h) |
Cells::const_reference | operator() (const Indices &indices) const |
Cells::reference | operator() (const Indices &indices) |
Static Protected Member Functions |
static unsigned int | getIndex (unsigned int w, unsigned int h, unsigned int width) |
Protected Attributes |
Cells | mGrid |
unsigned int | mHeight |
unsigned int | mWidth |
template<typename CellType>
class Grid2D< CellType >
Definition at line 44 of file Grid2D.h.