|
Board Class Reference#include <Board.h>
List of all members.
Detailed Description
The Board class.
Definition at line 30 of file Board.h.
Constructor & Destructor Documentation
|
Supplies the Queen class with a pointer to the board. |
|
Clears the board and removes pointer from queens. |
Member Function Documentation
void Board::display |
( |
|
) |
const |
|
void Board::doEightQueens |
( |
|
) |
|
|
|
Initiates the Eight Queens problem. |
int Board::getNumQueens |
( |
|
) |
const |
|
|
- Returns:
- The number of queens on the board.
|
const Queen* Board::getQueen |
( |
int |
index |
) |
const |
|
|
- Returns:
- A pointer to the queen at the designated index.
|
bool Board::isQueen |
( |
int |
inRow, |
|
|
int |
inCol |
|
) |
const [private] |
|
|
Determines whether there is a queen in position (inRow, inCol). |
bool Board::placeQueens |
( |
Queen * |
queenPtr |
) |
[private] |
|
void Board::removeQueen |
( |
|
) |
[private] |
|
|
Removes the last queen on the board, but does not delete it. |
void Board::setQueen |
( |
const Queen * |
queenPtr |
) |
[private] |
|
|
Places a queen on the board. |
Member Data Documentation
|
Array of queens on the board.
Definition at line 70 of file Board.h. |
The documentation for this class was generated from the following files:
|