UsedPieces Class Reference

UsedPieces is a bit array which indicated which pieces are in use. More...

#include <CubeAcc.h>

List of all members.

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


Detailed Description

UsedPieces is a bit array which indicated which pieces are in use.

It is used solely in the solution engine for the purpose of marking pieces that are already selected into the currently built solution

See also:
Cube


Constructor & Destructor Documentation

UsedPieces::UsedPieces ( int  size_  )  [inline]

UsedPieces::~UsedPieces (  )  [inline]


Member Function Documentation

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.


Member Data Documentation

bool* UsedPieces::dt [private]


The documentation for this class was generated from the following file: