Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
// doxy/ or-tools/ src/ constraint_solver/ |
#include <constraint_solver.h>
Public Member Functions | |
Decision () | |
virtual | ~Decision () |
virtual void | Apply (Solver *const s)=0 |
Apply will be called first when the decision is executed. | |
virtual void | Refute (Solver *const s)=0 |
Refute will be called after a backtrack. | |
virtual string | DebugString () const |
virtual void | Accept (DecisionVisitor *const visitor) const |
Accepts the given visitor. |
The two main methods are Apply() to go left, or Refute() to go right.
Definition at line 3078 of file constraint_solver.h.
operations_research::Decision::Decision | ( | ) | [inline] |
Definition at line 3080 of file constraint_solver.h.
virtual operations_research::Decision::~Decision | ( | ) | [inline, virtual] |
Definition at line 3081 of file constraint_solver.h.
virtual void operations_research::Decision::Apply | ( | Solver *const | s | ) | [pure virtual] |
Apply will be called first when the decision is executed.
virtual void operations_research::Decision::Refute | ( | Solver *const | s | ) | [pure virtual] |
Refute will be called after a backtrack.
virtual string operations_research::Decision::DebugString | ( | ) | const [inline, virtual] |
Reimplemented from operations_research::BaseObject.
Definition at line 3089 of file constraint_solver.h.
void operations_research::Decision::Accept | ( | DecisionVisitor *const | visitor | ) | const [virtual] |
Accepts the given visitor.
Decision and DecisionVisitor.
Definition at line 2569 of file constraint_solver.cc.