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. | |
Static Public Member Functions | |
static void * | operator new (size_t) |
Allocate memory from heap. | |
static void | operator delete (void *) |
Return memory to heap. | |
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 969 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, BlackHoleBranch::Choice, Warnsdorff::Choice, SteelMill::SteelMillBranch::Choice, Gecode::Gist::StopChoice, Gecode::Int::Branch::PosValuesChoice< ViewSel, View >, Gecode::FunctionBranch::Description, Gecode::PosChoice< ViewSel >, and Gecode::PosValChoice< ViewSel, ValSel >.
void * Gecode::Choice::operator new | ( | size_t | s | ) | [inline, static] |
void Gecode::Choice::operator delete | ( | void * | p | ) | [inline, static] |
void Gecode::Choice::archive | ( | Archive & | e | ) | const [virtual] |
Archive into e.
Reimplemented in CDBF::Choice, BlackHoleBranch::Choice, Warnsdorff::Choice, SteelMill::SteelMillBranch::Choice, Gecode::Gist::StopChoice, Gecode::Int::Branch::PosValuesChoice< ViewSel, View >, Gecode::FunctionBranch::Description, Gecode::PosChoice< ViewSel >, and Gecode::PosValChoice< ViewSel, ValSel >.
The documentation for this class was generated from the following files:
- gecode/kernel/core.hpp (Revision: 12538)
- gecode/kernel/core.cpp (Revision: 12001)