SGSolve
SGSolution_MaxMinMax Class Reference

Records the progress of SGSolver_MaxMinMax::solve(). More...

#include <sgsolution_maxminmax.hpp>

Collaboration diagram for SGSolution_MaxMinMax:

Public Member Functions

 SGSolution_MaxMinMax ()
 Default constructor.
 
 SGSolution_MaxMinMax (const SGGame &_game)
 Initializes an SGSolution_MaxMinMax object with a copy of the SGGame _game.
 
const SGGamegetGame () const
 Get method for the game.
 
const list< SGIteration_MaxMinMax > & getIterations () const
 Get method for the iterations.
 
void clear ()
 
void push_back (const SGIteration_MaxMinMax &iteration)
 Adds a new iteration to the back of SGSolution_MaxMinMax::iterations.
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 Serializes the SGSolution_MaxMinMax object using boost.
 

Static Public Member Functions

static void save (const SGSolution_MaxMinMax &soln, const char *filename)
 Static method for saving an SGSolution_MaxMinMax object to the file filename.
 
static void load (SGSolution_MaxMinMax &soln, const char *filename)
 Static method for loading an SGSolution_MaxMinMax object from the file filename.
 

Private Attributes

SGGame game
 
list< SGIteration_MaxMinMaxiterations
 

Friends

class boost::serialization::access
 

Detailed Description

Records the progress of SGSolver_MaxMinMax::solve().

This class contains a copy of the game used by SGSolver_MaxMinMax, a list of iterations generated by SGSolver_MaxMinMax::solve().

Examples
pd_twostate.cpp, and risksharing_maxminmax.cpp.

Member Function Documentation

◆ clear()

void SGSolution_MaxMinMax::clear ( )
inline

Resets the SGSolution_MaxMinMax object by clearing the iterations and extremeTuples lists.

Member Data Documentation

◆ game

SGGame SGSolution_MaxMinMax::game
private

The game that was solved.

◆ iterations

list<SGIteration_MaxMinMax> SGSolution_MaxMinMax::iterations
private

A list of SGIteration_MaxMinMax objects tracking the progress of SGSolver::solve().


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