Choices storing position More...
#include <view.hpp>
Public Member Functions | |
PosChoice (const Brancher &b, unsigned int a, const Pos &p) | |
Initialize choice for brancher b, number of alternatives a, and position p. More... | |
const Pos & | pos (void) const |
Return position in array. More... | |
virtual void | archive (Archive &e) const |
Archive into e. More... | |
![]() | |
unsigned int | alternatives (void) const |
Return number of alternatives. More... | |
virtual | ~Choice (void) |
Destructor. More... | |
virtual void | archive (Archive &e) const |
Archive into e. More... | |
Protected Member Functions | |
PosChoice (const PosChoice &c) | |
Initialize. More... | |
![]() | |
Choice (const Brancher &b, const unsigned int a) | |
Initialize for particular brancher b and alternatives a. More... | |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t s) |
Memory management. More... | |
static void | operator delete (void *p) |
Free memory allocated from heap. More... | |
|
protected |
Initialize.
|
inline |
|
inlinevirtual |
Archive into e.
Reimplemented from Gecode::Choice.
Reimplemented in Gecode::Int::Branch::PosValuesChoice, Gecode::Int::LDSB::LDSBChoice< Val >, and Gecode::PosValChoice< Val >.