Choice storing position and value More...
#include <brancher-view-val.hpp>
Public Member Functions | |
PosValChoice (const Brancher &b, unsigned int a, const Pos &p, const Val &n) | |
Initialize choice for brancher b, number of alternatives a, position p, and value n. More... | |
const Val & | val (void) const |
Return value to branch with. More... | |
virtual size_t | size (void) const |
Report size occupied. More... | |
virtual void | archive (Archive &e) const |
Archive into e. More... | |
![]() | |
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... | |
![]() | |
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 value
Definition at line 50 of file brancher-view-val.hpp.
|
inline |
Initialize choice for brancher b, number of alternatives a, position p, and value n.
Definition at line 157 of file brancher-view-val.hpp.
|
inline |
Return value to branch with.
Definition at line 163 of file brancher-view-val.hpp.
|
inlinevirtual |
Report size occupied.
Reimplemented from Gecode::PosChoice.
Reimplemented in Gecode::Int::LDSB::LDSBChoice< Val >.
Definition at line 169 of file brancher-view-val.hpp.
|
inlinevirtual |
Archive into e.
Reimplemented from Gecode::PosChoice.
Reimplemented in Gecode::Int::LDSB::LDSBChoice< Val >.
Definition at line 175 of file brancher-view-val.hpp.