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 | |
SearchLimit (Solver *const s) | |
virtual | ~SearchLimit () |
Search Limits. | |
bool | crossed () const |
Returns true if the limit has been crossed. | |
virtual bool | Check ()=0 |
This method is called to check the status of the limit. | |
virtual void | Init ()=0 |
This method is called when the search limit is initialized. | |
virtual void | Copy (const SearchLimit *const limit)=0 |
Copy a limit. | |
virtual SearchLimit * | MakeClone () const =0 |
Allocates a clone of the limit. | |
virtual void | EnterSearch () |
Internal methods. | |
virtual void | BeginNextDecision (DecisionBuilder *const b) |
Before calling DecisionBuilder::Next. | |
virtual void | PeriodicCheck () |
Periodic call to check limits in long running methods. | |
virtual void | RefuteDecision (Decision *const d) |
Before refuting the Decision. | |
virtual string | DebugString () const |
Base class of all search limits.
Definition at line 3971 of file constraint_solver.h.
operations_research::SearchLimit::SearchLimit | ( | Solver *const | s | ) | [inline, explicit] |
Definition at line 3973 of file constraint_solver.h.
operations_research::SearchLimit::~SearchLimit | ( | ) | [virtual] |
bool operations_research::SearchLimit::crossed | ( | ) | const [inline] |
virtual bool operations_research::SearchLimit::Check | ( | ) | [pure virtual] |
This method is called to check the status of the limit.
A return value of true indicates that we have indeed crossed the limit. In that case, this method will not be called again and the remaining search will be discarded.
virtual void operations_research::SearchLimit::Init | ( | ) | [pure virtual] |
This method is called when the search limit is initialized.
virtual void operations_research::SearchLimit::Copy | ( | const SearchLimit *const | limit | ) | [pure virtual] |
Copy a limit.
Warning: leads to a direct (no check) downcasting of 'limit' so one needs to be sure both SearchLimits are of the same type.
virtual SearchLimit* operations_research::SearchLimit::MakeClone | ( | ) | const [pure virtual] |
Allocates a clone of the limit.
void operations_research::SearchLimit::EnterSearch | ( | ) | [virtual] |
void operations_research::SearchLimit::BeginNextDecision | ( | DecisionBuilder *const | b | ) | [virtual] |
void operations_research::SearchLimit::PeriodicCheck | ( | ) | [virtual] |
Periodic call to check limits in long running methods.
Reimplemented from operations_research::SearchMonitor.
void operations_research::SearchLimit::RefuteDecision | ( | Decision *const | d | ) | [virtual] |
virtual string operations_research::SearchLimit::DebugString | ( | ) | const [inline, virtual] |
Reimplemented from operations_research::BaseObject.
Definition at line 4000 of file constraint_solver.h.