![]() |
Walls And Holes
1
|
#include <array2d.h>
Public Member Functions | |
Array2DCNeighborIterator (const Array2D< Type > *r, int x, int y, int idx) | |
bool | operator== (const Array2DCNeighborIterator< Type > &other) const |
bool | operator!= (const Array2DCNeighborIterator< Type > &other) const |
Array2DCNeighborIterator< Type > & | operator++ () |
Array2DCNeighborIterator< Type > | operator++ (int) |
const Type & | operator* () const |
Static Public Member Functions | |
static Array2DCNeighborIterator | beginning (const Array2D< Type > *r, int x, int y) |
static Array2DCNeighborIterator | ending (const Array2D< Type > *r, int x, int y) |
Protected Member Functions | |
int | getX (int neighbor) const |
int | getY (int neighbor) const |
bool | isInBounds () const |
Protected Attributes | |
const Array2D< Type > * | arr |
int | centerX |
int | centerY |
int | neighborIndex |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |