HOG2
|
#include <Witness.h>
Public Member Functions | |
WitnessState () | |
WitnessState (const WitnessState< width, height > &state) | |
void | Reset () |
bool | Occupied (int which) |
bool | isAlongTheWall () const |
bool | hitTheWall () const |
bool | Occupied (int x, int y) const |
void | Occupy (int x, int y) |
void | Unoccupy (int x, int y) |
bool | OccupiedEdge (int x1, int y1, int x2, int y2) const |
void | OccupyEdge (int x1, int y1, int x2, int y2) |
void | UnoccupyEdge (int x1, int y1, int x2, int y2) |
bool | InGoal () const |
Public Attributes | |
std::vector< std::pair< int, int > > | path |
std::bitset<(width+1) *(height+1)> | occupiedCorners |
std::bitset<(width+1) *(height)+(width) *(height+1)> | occupiedEdges |
|
inline |
Definition at line 48 of file Witness.h.
References WitnessState< width, height >::Reset().
|
inline |
Definition at line 50 of file Witness.h.
References WitnessState< width, height >::occupiedCorners, WitnessState< width, height >::occupiedEdges, and WitnessState< width, height >::path.
|
inline |
|
inline |
Definition at line 127 of file Witness.h.
Referenced by Witness< width, height >::GetMouseActions().
|
inline |
|
inline |
Definition at line 64 of file Witness.h.
References height, WitnessState< width, height >::OccupiedEdge(), and width.
Referenced by Witness< width, height >::GetActions(), and Witness< width, height >::Legal().
|
inline |
Definition at line 106 of file Witness.h.
References WitnessState< width, height >::occupiedCorners, and width.
|
inline |
Definition at line 115 of file Witness.h.
References WitnessState< width, height >::occupiedEdges.
Referenced by Witness< width, height >::LabelRegions(), and WitnessState< width, height >::Occupied().
|
inline |
Definition at line 108 of file Witness.h.
References WitnessState< width, height >::occupiedCorners, and width.
Referenced by Witness< width, height >::ApplyAction().
|
inline |
Definition at line 120 of file Witness.h.
References WitnessState< width, height >::occupiedEdges.
Referenced by Witness< width, height >::ApplyAction().
|
inline |
Definition at line 57 of file Witness.h.
References WitnessState< width, height >::occupiedCorners, and WitnessState< width, height >::occupiedEdges.
Referenced by Witness< width, height >::ApplyAction(), and WitnessState< width, height >::WitnessState().
|
inline |
Definition at line 110 of file Witness.h.
References height, WitnessState< width, height >::occupiedCorners, and width.
Referenced by Witness< width, height >::UndoAction().
|
inline |
Definition at line 122 of file Witness.h.
References WitnessState< width, height >::occupiedEdges.
Referenced by Witness< width, height >::UndoAction().
std::bitset<(width + 1) * (height + 1)> WitnessState< width, height >::occupiedCorners |
Definition at line 45 of file Witness.h.
Referenced by WitnessState< width, height >::Occupied(), WitnessState< width, height >::Occupy(), WitnessState< width, height >::Reset(), WitnessState< width, height >::Unoccupy(), and WitnessState< width, height >::WitnessState().
std::bitset<(width + 1) * (height) + (width) * (height + 1)> WitnessState< width, height >::occupiedEdges |
Definition at line 46 of file Witness.h.
Referenced by WitnessState< width, height >::OccupiedEdge(), WitnessState< width, height >::OccupyEdge(), WitnessState< width, height >::Reset(), WitnessState< width, height >::UnoccupyEdge(), and WitnessState< width, height >::WitnessState().
std::vector<std::pair<int, int> > WitnessState< width, height >::path |
Definition at line 44 of file Witness.h.
Referenced by Witness< width, height >::ApplyAction(), Witness< width, height >::Draw(), Witness< width, height >::GetActions(), Witness< width, height >::GetMouseActions(), Witness< width, height >::Legal(), Witness< width, height >::UndoAction(), and WitnessState< width, height >::WitnessState().