Generated on Mon Sep 17 2012 22:20:52 for Gecode by doxygen 1.8.1.1
SudokuSet Class Reference

Example: Solving Sudoku puzzles using set constraints More...

List of all members.

Public Member Functions

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

Protected Attributes

SetVarArray y
 The fields occupied by a certain number.

Additional Inherited Members

- Public Types inherited from Sudoku
enum  { MODEL_INT, MODEL_SET, MODEL_MIXED }
 Model variants. More...
enum  {
  BRANCH_NONE, BRANCH_SIZE, BRANCH_SIZE_DEGREE, BRANCH_SIZE_AFC,
  BRANCH_AFC
}
- Static Protected Attributes inherited from Sudoku
const int n
 The size of the problem.

Detailed Description

Example: Solving Sudoku puzzles using set constraints

Definition at line 247 of file sudoku.cpp.


Constructor & Destructor Documentation

SudokuSet::SudokuSet ( const SizeOptions opt)
inline

Constructor.

Definition at line 253 of file sudoku.cpp.

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

Constructor for cloning s.

Definition at line 325 of file sudoku.cpp.


Member Function Documentation

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

Perform copying during cloning.

Reimplemented in SudokuMixed.

Definition at line 331 of file sudoku.cpp.

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

Print solution.

Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.

Reimplemented in SudokuMixed.

Definition at line 337 of file sudoku.cpp.


Member Data Documentation

SetVarArray SudokuSet::y
protected

The fields occupied by a certain number.

Definition at line 250 of file sudoku.cpp.


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