Test::Int::Assignment Class Reference
[General test support]
Base class for assignments More...
#include <int.hh>
Public Member Functions | |
Assignment (int n0, const Gecode::IntSet &d0) | |
Initialize assignments for n0 variables and values d0. | |
virtual bool | operator() (void) const =0 |
Test whether all assignments have been iterated. | |
virtual void | operator++ (void)=0 |
Move to next assignment. | |
virtual int | operator[] (int i) const =0 |
Return value for variable i. | |
int | size (void) const |
Return number of variables. | |
virtual | ~Assignment (void) |
Destructor. | |
Protected Attributes | |
int | n |
Number of variables. | |
Gecode::IntSet | d |
Domain for each variable. |
Detailed Description
Base class for assignments
Definition at line 63 of file int.hh.
Constructor & Destructor Documentation
Test::Int::Assignment::Assignment | ( | int | n0, | |
const Gecode::IntSet & | d0 | |||
) | [inline] |
Test::Int::Assignment::~Assignment | ( | void | ) | [inline, virtual] |
Member Function Documentation
virtual bool Test::Int::Assignment::operator() | ( | void | ) | const [pure virtual] |
Test whether all assignments have been iterated.
Implemented in Test::Int::BinPacking::LoadBinAssignment, Test::Int::Cumulatives::CumulativeAssignment, Test::Int::CpltAssignment, Test::Int::RandomAssignment, and Test::Int::RandomMixAssignment.
virtual void Test::Int::Assignment::operator++ | ( | void | ) | [pure virtual] |
Move to next assignment.
Implemented in Test::Int::BinPacking::LoadBinAssignment, Test::Int::Cumulatives::CumulativeAssignment, Test::Int::CpltAssignment, Test::Int::RandomAssignment, and Test::Int::RandomMixAssignment.
virtual int Test::Int::Assignment::operator[] | ( | int | i | ) | const [pure virtual] |
Return value for variable i.
Implemented in Test::Int::BinPacking::LoadBinAssignment, Test::Int::Cumulatives::CumulativeAssignment, Test::Int::CpltAssignment, Test::Int::RandomAssignment, and Test::Int::RandomMixAssignment.
int Test::Int::Assignment::size | ( | void | ) | const [inline] |
Member Data Documentation
int Test::Int::Assignment::n [protected] |
Gecode::IntSet Test::Int::Assignment::d [protected] |
The documentation for this class was generated from the following files: