#include <CubeAcc.h>
Public Member Functions | |
| UsedPieces (int size_) | |
| ~UsedPieces () | |
| void | realloc (int newsize) |
| bool | axx (const int n) |
| void | set (const int n, const bool val) |
| void | multset (const int *rep, const int rpsz) |
| set a number of indexes to true, according to the list supplied. | |
| void | clear () |
Static Public Member Functions | |
| static bool | allones (UsedPieces &first, UsedPieces &second) |
| check if the is an index in which both lists have a value of false. | |
Public Attributes | |
| int | cnt |
| int | size |
Private Attributes | |
| bool * | dt |
It is used solely in the solution engine for the purpose of marking pieces that are already selected into the currently built solution
| UsedPieces::UsedPieces | ( | int | size_ | ) | [inline] |
| UsedPieces::~UsedPieces | ( | ) | [inline] |
| void UsedPieces::realloc | ( | int | newsize | ) | [inline] |
| bool UsedPieces::axx | ( | const int | n | ) | [inline] |
| void UsedPieces::set | ( | const int | n, | |
| const bool | val | |||
| ) | [inline] |
| void UsedPieces::multset | ( | const int * | list, | |
| const int | lsz | |||
| ) | [inline] |
set a number of indexes to true, according to the list supplied.
this list will most likely be the PicType::rep list of repeating pieces.
| void UsedPieces::clear | ( | ) | [inline] |
| bool UsedPieces::allones | ( | UsedPieces & | first, | |
| UsedPieces & | second | |||
| ) | [inline, static] |
check if the is an index in which both lists have a value of false.
| int UsedPieces::cnt |
| int UsedPieces::size |
bool* UsedPieces::dt [private] |