SGSolve
|
Records the progress of SGSolver::solve(). More...
#include <sgsolution_pencilsharpening.hpp>
Public Member Functions | |
SGSolution_PencilSharpening () | |
Default constructor. | |
SGSolution_PencilSharpening (const SGGame &_game) | |
Initializes an SGSolution object with a copy of the SGGame _game. | |
const SGGame & | getGame () const |
Get method for the game. | |
const list< SGIteration_PencilSharpening > & | getIterations () const |
Get method for the iterations. | |
const list< SGTuple > & | getExtremeTuples () const |
Get method for the extremeTuples. | |
void | clear () |
void | push_back (const SGIteration_PencilSharpening &iteration) |
Adds a new iteration to the back of SGSolution::iterations. | |
void | push_back (const SGTuple &tuple) |
Adds a new tuple to the back of SGSolution::extremeTuples. | |
void | pop_back () |
Pops the last tuple off of SGSolution::extremeTuples. | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Serializes the SGSolution object using boost. | |
Static Public Member Functions | |
static void | save (const SGSolution_PencilSharpening &soln, const char *filename) |
Static method for saving an SGSolution object to the file filename. | |
static void | load (SGSolution_PencilSharpening &soln, const char *filename) |
Static method for loading an SGSolution object from the file filename. | |
Private Attributes | |
SGGame | game |
list< SGIteration_PencilSharpening > | iterations |
list< SGTuple > | extremeTuples |
Friends | |
class | boost::serialization::access |
Records the progress of SGSolver::solve().
This class contains a copy of the game used by SGSolver, a list of iterations and a list of extreme tuples generated by SGSolver::solve().
Part of the pencil-sharpening algorithm.
|
inline |
Resets the SGSolution object by clearing the iterations and extremeTuples lists.
|
private |
The trajectory of the pivot tuple generated by SGSolver::solve().
|
private |
The game that was solved.
|
private |
A list of SGIteration objects tracking the progress of SGSolver::solve().