C++ Reference
C++ Reference: Routing
Decisionabstract
Detailed Description
A Decision represents a choice point in the search tree.
The two main methods are Apply() to go left, or Refute() to go right.
Definition at line 3228 of file constraint_solver.h.
Public Member Functions | |
Decision () | |
~Decision () override | |
virtual void | Apply (Solver *const s)=0 |
Apply will be called first when the decision is executed. More... | |
virtual void | Refute (Solver *const s)=0 |
Refute will be called after a backtrack. More... | |
std::string | DebugString () const override |
virtual void | Accept (DecisionVisitor *const visitor) const |
Accepts the given visitor. More... | |
Constructor & Destructor Documentation
◆ Decision()
|
inline |
Definition at line 3230 of file constraint_solver.h.
◆ ~Decision()
|
inlineoverride |
Definition at line 3231 of file constraint_solver.h.
Member Function Documentation
◆ Accept()
|
virtual |
Accepts the given visitor.
◆ Apply()
|
pure virtual |
Apply will be called first when the decision is executed.
◆ DebugString()
|
inlineoverridevirtual |
Reimplemented from BaseObject.
Definition at line 3239 of file constraint_solver.h.
◆ Refute()
|
pure virtual |
Refute will be called after a backtrack.
The documentation for this class was generated from the following file: