Exemplo n.º 1
0
int Solver::reset(const int& colors, const int& pegs, const bool& same_colors)
{
    mColors = colors;
    mPegs = pegs;
    mSameColors = same_colors;
    deleteTables();
    createTables();
    return mCodes.size;
}
Exemplo n.º 2
0
// ***************************************************************
//  CppDB destructor
//  
//  description:
//  frees all memory allocated for the current CppDB object.
// ***************************************************************
CppDB::~CppDB()
{
  CppDBLogger::log("CppDB::~CppDB destructor entered");

  // free memory allocated for each table slot
  deleteTables();

  // free memory allocated for tables array
  delete[] tables;
  tables = NULL;

  CppDBLogger::log("CppDB::~CppDB destructor exited");
}
Exemplo n.º 3
0
Solver::~Solver()
{
    deleteTables();
}