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 | |
PropagationBaseObject (Solver *const s) | |
virtual | ~PropagationBaseObject () |
virtual string | DebugString () const |
Solver * | solver () const |
void | FreezeQueue () |
This method freezes the propagation queue. | |
void | UnfreezeQueue () |
This method unfreezes the propagation queue. | |
void | Enqueue (Demon *d) |
This method pushes the demon onto the propagation queue. | |
void | ProcessDemonsOnQueue () |
This methods process all demons with priority non IMMEDIATE on the queue. | |
void | set_queue_action_on_fail (Action *a) |
This method sets a callback that will be called if a failure happens during the propagation of the queue. | |
void | clear_queue_action_on_fail () |
This methods clears the failure callback. | |
virtual string | name () const |
Naming. | |
void | set_name (const string &name) |
bool | HasName () const |
Returns whether the object has been named or not. | |
virtual string | BaseName () const |
Returns a base name for automatic naming. |
It allows accessing methods useful when writing new constraints or new expressions.
Definition at line 3021 of file constraint_solver.h.
operations_research::PropagationBaseObject::PropagationBaseObject | ( | Solver *const | s | ) | [inline, explicit] |
Definition at line 3023 of file constraint_solver.h.
virtual operations_research::PropagationBaseObject::~PropagationBaseObject | ( | ) | [inline, virtual] |
Definition at line 3024 of file constraint_solver.h.
virtual string operations_research::PropagationBaseObject::DebugString | ( | ) | const [inline, virtual] |
Reimplemented from operations_research::BaseObject.
Reimplemented in operations_research::Constraint, operations_research::SequenceVar, operations_research::Assignment, and operations_research::Pack.
Definition at line 3026 of file constraint_solver.h.
Solver* operations_research::PropagationBaseObject::solver | ( | ) | const [inline] |
Definition at line 3033 of file constraint_solver.h.
void operations_research::PropagationBaseObject::FreezeQueue | ( | ) | [inline] |
This method freezes the propagation queue.
It is useful when you need to apply multiple modifications at once.
Definition at line 3036 of file constraint_solver.h.
void operations_research::PropagationBaseObject::UnfreezeQueue | ( | ) | [inline] |
This method unfreezes the propagation queue.
All modifications that happened when the queue was frozen will be processed.
Definition at line 3040 of file constraint_solver.h.
void operations_research::PropagationBaseObject::Enqueue | ( | Demon * | d | ) | [inline] |
This method pushes the demon onto the propagation queue.
It will be processed directly if the queue is empty. It will be enqueued according to its priority otherwise.
Definition at line 3045 of file constraint_solver.h.
void operations_research::PropagationBaseObject::ProcessDemonsOnQueue | ( | ) | [inline] |
This methods process all demons with priority non IMMEDIATE on the queue.
Definition at line 3049 of file constraint_solver.h.
void operations_research::PropagationBaseObject::set_queue_action_on_fail | ( | Action * | a | ) | [inline] |
This method sets a callback that will be called if a failure happens during the propagation of the queue.
Definition at line 3053 of file constraint_solver.h.
void operations_research::PropagationBaseObject::clear_queue_action_on_fail | ( | ) | [inline] |
string operations_research::PropagationBaseObject::name | ( | ) | const [virtual] |
void operations_research::PropagationBaseObject::set_name | ( | const string & | name | ) |
Definition at line 2544 of file constraint_solver.cc.
bool operations_research::PropagationBaseObject::HasName | ( | ) | const |
Returns whether the object has been named or not.
Definition at line 2548 of file constraint_solver.cc.
string operations_research::PropagationBaseObject::BaseName | ( | ) | const [virtual] |