Gecode::PosValDesc< Val, alt > Class Template Reference
[Generic branching based on view and value selection]
Inherits Gecode::BranchingDesc.
Detailed Description
template<class Val, unsigned int alt>
class Gecode::PosValDesc< Val, alt >
Branching descriptions storing position and value
The maximal number of alternatives is defined by alt.
Definition at line 174 of file branching.icc.
Public Member Functions | |
PosValDesc (const Branching *b, const int p, const Val &n) | |
Initialize description for branching b, position p, value n, and start position s. | |
int | pos (void) const |
Return position in array. | |
Val | val (void) const |
Return value to branch with. | |
virtual size_t | size (void) const |
Report size occupied. | |
Protected Attributes | |
const int | _pos |
Position of view. | |
const Val | _val |
Value to assign to. |
Constructor & Destructor Documentation
template<class Val, unsigned int alt>
Gecode::PosValDesc< Val, alt >::PosValDesc | ( | const Branching * | b, | |
const int | p, | |||
const Val & | n | |||
) | [inline] |
Initialize description for branching b, position p, value n, and start position s.
The start position can be used in the commit function to eliminate assigned variables from the array.
Definition at line 209 of file branching.icc.
Member Function Documentation
template<class Val, unsigned int alt>
int Gecode::PosValDesc< Val, alt >::pos | ( | void | ) | const [inline] |
template<class Val, unsigned int alt>
Val Gecode::PosValDesc< Val, alt >::val | ( | void | ) | const [inline] |
template<class Val, unsigned int alt>
size_t Gecode::PosValDesc< Val, alt >::size | ( | void | ) | const [inline, virtual] |
Report size occupied.
Implements Gecode::BranchingDesc.
Definition at line 227 of file branching.icc.
Member Data Documentation
template<class Val, unsigned int alt>
const int Gecode::PosValDesc< Val, alt >::_pos [protected] |
template<class Val, unsigned int alt>
const Val Gecode::PosValDesc< Val, alt >::_val [protected] |
The documentation for this class was generated from the following file:
- gecode/kernel/branching.icc (Revision: 7658)