Choice storing position and values More...
#include <select-values.hpp>
Classes | |
class | PosMin |
Information about position and minimum. More... | |
Public Member Functions | |
PosValuesChoice (const Brancher &b, const Pos &p, const typename ViewSel::Choice &viewc, View x) | |
Initialize choice for brancher b, position p, view choice viewc, and view x. | |
PosValuesChoice (const Brancher &b, unsigned int alt, Pos p, const typename ViewSel::Choice &viewc, Archive &e) | |
Initialize choice for brancher b from e. | |
int | val (unsigned int a) const |
Return value to branch with for alternative a. | |
virtual size_t | size (void) const |
Report size occupied. | |
virtual | ~PosValuesChoice (void) |
Deallocate. | |
virtual void | archive (Archive &e) const |
Archive into e. |
Choice storing position and values
The maximal number of alternatives is defined by alt.
Gecode::Int::Branch::PosValuesChoice::PosValuesChoice | ( | const Brancher & | b, |
const Pos & | p, | ||
const typename ViewSel::Choice & | viewc, | ||
View | x | ||
) | [inline] |
Initialize choice for brancher b, position p, view choice viewc, and view x.
Definition at line 82 of file select-values.hpp.
Gecode::Int::Branch::PosValuesChoice::PosValuesChoice | ( | const Brancher & | b, |
unsigned int | alt, | ||
Pos | p, | ||
const typename ViewSel::Choice & | viewc, | ||
Archive & | e | ||
) | [inline] |
Initialize choice for brancher b from e.
Definition at line 101 of file select-values.hpp.
Gecode::Int::Branch::PosValuesChoice::~PosValuesChoice | ( | void | ) | [virtual] |
Deallocate.
Definition at line 138 of file select-values.hpp.
int Gecode::Int::Branch::PosValuesChoice::val | ( | unsigned int | a | ) | const [inline] |
Return value to branch with for alternative a.
Definition at line 114 of file select-values.hpp.
size_t Gecode::Int::Branch::PosValuesChoice::size | ( | void | ) | const [virtual] |
Report size occupied.
Reimplemented from Gecode::PosChoice< ViewSel >.
Definition at line 133 of file select-values.hpp.
void Gecode::Int::Branch::PosValuesChoice::archive | ( | Archive & | e | ) | const [inline, virtual] |
Archive into e.
Reimplemented from Gecode::PosChoice< ViewSel >.
Definition at line 144 of file select-values.hpp.