Gecode::Choice Class Reference
[Programming actors]
Choice for performing commit More...
#include <core.hpp>
Public Member Functions | |
unsigned int | alternatives (void) const |
Return number of alternatives. | |
virtual | ~Choice (void) |
Destructor. | |
virtual size_t | size (void) const =0 |
Report size occupied by choice. | |
virtual void | archive (Archive &e) const |
Archive into e. | |
Protected Member Functions | |
Choice (const Brancher &b, const unsigned int a) | |
Initialize for particular brancher b and alternatives a. |
Detailed Description
Choice for performing commit
Must be refined by inheritance such that the information stored inside a choice is sufficient to redo a commit performed by a particular brancher.
Definition at line 1414 of file core.hpp.
Constructor & Destructor Documentation
Gecode::Choice::Choice | ( | const Brancher & | b, | |
const unsigned int | a | |||
) | [inline, protected] |
Gecode::Choice::~Choice | ( | void | ) | [inline, virtual] |
Member Function Documentation
unsigned int Gecode::Choice::alternatives | ( | void | ) | const [inline] |
virtual size_t Gecode::Choice::size | ( | void | ) | const [pure virtual] |
Report size occupied by choice.
Implemented in CDBF::Choice, Warnsdorff::Choice, SteelMill::SteelMillBranch::Choice, Gecode::FlatZinc::AuxVarBrancher::Choice, Gecode::Gist::StopChoice, Gecode::Int::Branch::PosValuesChoice, Gecode::Int::LDSB::LDSBChoice< Val >, Gecode::FunctionBranch::Description, Gecode::PosValChoice< Val >, and Gecode::PosChoice.
void Gecode::Choice::archive | ( | Archive & | e | ) | const [virtual] |
Archive into e.
Reimplemented in CDBF::Choice, Warnsdorff::Choice, SteelMill::SteelMillBranch::Choice, Gecode::FlatZinc::AuxVarBrancher::Choice, Gecode::Gist::StopChoice, Gecode::Int::Branch::PosValuesChoice, Gecode::Int::LDSB::LDSBChoice< Val >, Gecode::FunctionBranch::Description, Gecode::PosValChoice< Val >, and Gecode::PosChoice.
The documentation for this class was generated from the following files:
- gecode/kernel/core.hpp (Revision: 15597)
- gecode/kernel/core.cpp (Revision: 15597)