Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ constraint_solver/

operations_research::Decision Class Reference

A Decision represents a choice point in the search tree. More...

#include <constraint_solver.h>

Inheritance diagram for operations_research::Decision:

operations_research::BaseObject

List of all members.

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.


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 3078 of file constraint_solver.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files: