Gecode::Set::Branch::ValMed< inc > Class Template Reference
[Set value selection for brancher]
Class for selecting median value (rounding downwards). More...
#include <branch.hh>
Public Member Functions | |
ValMed (void) | |
Default constructor. | |
ValMed (Space &home, const ValBranchOptions &vbo) | |
Constructor for initialization. | |
int | val (Space &home, SetView x) const |
Return minimum value of view x. | |
ModEvent | tell (Space &home, unsigned int a, SetView x, int v) |
Tell (a = 0) or (a = 1). |
Detailed Description
template<bool inc>
class Gecode::Set::Branch::ValMed< inc >
Class for selecting median value (rounding downwards).
All value selection classes require
#include <gecode/set/branch.hh>
Definition at line 90 of file branch.hh.
Constructor & Destructor Documentation
template<bool inc>
Gecode::Set::Branch::ValMed< inc >::ValMed | ( | void | ) | [inline] |
Default constructor.
Definition at line 68 of file select-val.hpp.
template<bool inc>
Gecode::Set::Branch::ValMed< inc >::ValMed | ( | Space & | home, | |
const ValBranchOptions & | vbo | |||
) | [inline] |
Constructor for initialization.
Definition at line 71 of file select-val.hpp.
Member Function Documentation
template<bool inc>
int Gecode::Set::Branch::ValMed< inc >::val | ( | Space & | home, | |
SetView | x | |||
) | const [inline] |
Return minimum value of view x.
Definition at line 75 of file select-val.hpp.
template<bool inc>
ModEvent Gecode::Set::Branch::ValMed< inc >::tell | ( | Space & | home, | |
unsigned int | a, | |||
SetView | x, | |||
int | v | |||
) | [inline] |
Tell (a = 0) or (a = 1).
Definition at line 93 of file select-val.hpp.
The documentation for this class was generated from the following files:
- gecode/set/branch.hh (Revision: 12001)
- gecode/set/branch/select-val.hpp (Revision: 12001)