Test::Search::SolveImmediate Class Reference
Space that is immediately solved. More...
Public Member Functions | |
SolveImmediate (HowToBranch, HowToBranch, HowToBranch, HowToConstrain=HTC_NONE) | |
Constructor for space creation. | |
SolveImmediate (SolveImmediate &s) | |
Constructor for cloning s. | |
virtual Space * | copy (void) |
Copy during cloning. | |
virtual void | constrain (const Space &) |
Add constraint for next better solution. | |
virtual int | solutions (void) const |
Return number of solutions. | |
virtual bool | best (void) const |
Verify that this is best solution. | |
Static Public Member Functions | |
static std::string | name (void) |
Return name. | |
Public Attributes | |
IntVarArray | x |
Variables used. |
Detailed Description
Space that is immediately solved.
Definition at line 131 of file search.cpp.
Constructor & Destructor Documentation
Test::Search::SolveImmediate::SolveImmediate | ( | HowToBranch | , | |
HowToBranch | , | |||
HowToBranch | , | |||
HowToConstrain | = HTC_NONE | |||
) | [inline] |
Constructor for space creation.
Definition at line 136 of file search.cpp.
Test::Search::SolveImmediate::SolveImmediate | ( | SolveImmediate & | s | ) | [inline] |
Constructor for cloning s.
Definition at line 140 of file search.cpp.
Member Function Documentation
virtual Space* Test::Search::SolveImmediate::copy | ( | void | ) | [inline, virtual] |
virtual void Test::Search::SolveImmediate::constrain | ( | const Space & | ) | [inline, virtual] |
Add constraint for next better solution.
Reimplemented from Gecode::Space.
Definition at line 148 of file search.cpp.
virtual int Test::Search::SolveImmediate::solutions | ( | void | ) | const [inline, virtual] |
Return number of solutions.
Implements Test::Search::TestSpace.
Definition at line 152 of file search.cpp.
virtual bool Test::Search::SolveImmediate::best | ( | void | ) | const [inline, virtual] |
Verify that this is best solution.
Implements Test::Search::TestSpace.
Definition at line 156 of file search.cpp.
static std::string Test::Search::SolveImmediate::name | ( | void | ) | [inline, static] |
Return name.
Definition at line 160 of file search.cpp.
Member Data Documentation
Variables used.
Definition at line 134 of file search.cpp.
The documentation for this class was generated from the following file:
- test/search.cpp