Generated on Mon May 30 2016 09:04:08 for Gecode by doxygen 1.8.11
SudokuMixed Class Reference

Example: Solving Sudoku puzzles using both set and integer constraints More...

Public Member Functions

 SudokuMixed (const SizeOptions &opt)
 Constructor. More...
 
 SudokuMixed (bool share, SudokuMixed &s)
 Constructor for cloning s. More...
 
virtual Spacecopy (bool share)
 Perform copying during cloning. More...
 
virtual void print (std::ostream &os) const
 Print solution. More...
 
- Public Member Functions inherited from SudokuInt
 SudokuInt (const SizeOptions &opt)
 Constructor. More...
 
 SudokuInt (bool share, SudokuInt &s)
 Constructor for cloning s. More...
 
- Public Member Functions inherited from Sudoku
 Sudoku (const SizeOptions &opt)
 Constructor. More...
 
 Sudoku (bool share, Sudoku &s)
 Constructor for cloning s. More...
 
- Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace >
 ScriptBase (const Options &opt)
 Constructor. More...
 
 ScriptBase (bool share, ScriptBase &e)
 Constructor used for cloning. More...
 
virtual void compare (const Space &home, std::ostream &os) const
 Compare with s. More...
 
- Public Member Functions inherited from SudokuSet
 SudokuSet (const SizeOptions &opt)
 Constructor. More...
 
 SudokuSet (bool share, SudokuSet &s)
 Constructor for cloning s. More...
 

Additional Inherited Members

- Public Types inherited from SudokuInt
- Public Types inherited from Sudoku
- Static Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace >
static std::ostream & select_ostream (const char *name, std::ofstream &ofs)
 Choose output stream according to name. More...
 
template<class Script , template< class > class Engine, class Options >
static void run (const Options &opt, Script *s=NULL)
 
- Protected Attributes inherited from SudokuInt
IntVarArray x
 Values for the fields. More...
 
- Protected Attributes inherited from Sudoku
const int n
 The size of the problem. More...
 
- Protected Attributes inherited from SudokuSet
SetVarArray y
 The fields occupied by a certain number. More...
 

Detailed Description

Example: Solving Sudoku puzzles using both set and integer constraints

Definition at line 365 of file sudoku.cpp.

Constructor & Destructor Documentation

SudokuMixed::SudokuMixed ( const SizeOptions opt)
inline

Constructor.

Definition at line 368 of file sudoku.cpp.

SudokuMixed::SudokuMixed ( bool  share,
SudokuMixed s 
)
inline

Constructor for cloning s.

Definition at line 393 of file sudoku.cpp.

Member Function Documentation

virtual Space* SudokuMixed::copy ( bool  share)
inlinevirtual

Perform copying during cloning.

Reimplemented from SudokuInt.

Definition at line 398 of file sudoku.cpp.

virtual void SudokuMixed::print ( std::ostream &  os) const
inlinevirtual

Print solution.

Reimplemented from SudokuInt.

Definition at line 403 of file sudoku.cpp.


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