Choice storing position and values More...
#include <select-values.hpp>
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. More... | |
PosValuesChoice (const Brancher &b, unsigned int alt, Pos p, const typename ViewSel::Choice &viewc, Archive &e) | |
Initialize choice for brancher b from e. More... | |
int | val (unsigned int a) const |
Return value to branch with for alternative a. More... | |
virtual size_t | size (void) const |
Report size occupied. More... | |
virtual | ~PosValuesChoice (void) |
Deallocate. More... | |
virtual void | archive (Archive &e) const |
Archive into e. More... | |
![]() | |
PosChoice (const Brancher &b, unsigned int a, const Pos &p, const typename ViewSel::Choice &viewc) | |
Initialize choice for brancher b, number of alternatives a, position p, view selection choice viewc. More... | |
const Pos & | pos (void) const |
Return position in array. More... | |
const ViewSel::Choice & | viewchoice (void) const |
Return view selection choice. More... | |
![]() | |
unsigned int | alternatives (void) const |
Return number of alternatives. More... | |
virtual | ~Choice (void) |
Destructor. More... | |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t) |
Allocate memory from heap. More... | |
static void | operator delete (void *) |
Return memory to heap. More... | |
![]() | |
Choice (const Brancher &b, const unsigned int a) | |
Initialize for particular brancher b and alternatives a. More... | |
Choice storing position and values
The maximal number of alternatives is defined by alt.
Definition at line 46 of file select-values.hpp.
|
inline |
Initialize choice for brancher b, position p, view choice viewc, and view x.
Definition at line 82 of file select-values.hpp.
|
inline |
Initialize choice for brancher b from e.
Definition at line 101 of file select-values.hpp.
|
virtual |
Deallocate.
Definition at line 138 of file select-values.hpp.
|
inline |
Return value to branch with for alternative a.
Definition at line 114 of file select-values.hpp.
|
virtual |
Report size occupied.
Reimplemented from Gecode::PosChoice< ViewSel >.
Definition at line 133 of file select-values.hpp.
|
inlinevirtual |
Archive into e.
Reimplemented from Gecode::PosChoice< ViewSel >.
Definition at line 144 of file select-values.hpp.