Gecode::Int::Branch::ValSelNearMinMax< View, min > Class Template Reference
[Integer value selection for brancher]
Value selection class for nearest value. More...
#include <branch.hh>
Public Member Functions | |
| ValSelNearMinMax (Space &home, const ValBranch &vb) | |
| Constructor for initialization. | |
| ValSelNearMinMax (Space &home, bool shared, ValSelNearMinMax &vs) | |
| Constructor for cloning. | |
| int | val (const Space &home, View x, int i) |
| Return value of view x at position i. | |
| bool | notice (void) const |
| Whether dispose must always be called (that is, notice is needed). | |
| void | dispose (Space &home) |
| Delete value selection. | |
Protected Attributes | |
| IntSharedArray | c |
| The used values. | |
Detailed Description
template<class View, bool min>
class Gecode::Int::Branch::ValSelNearMinMax< View, min >
Value selection class for nearest value.
Requires
#include <gecode/int/branch.hh>
Definition at line 372 of file branch.hh.
Constructor & Destructor Documentation
template<class View , bool min>
| Gecode::Int::Branch::ValSelNearMinMax< View, min >::ValSelNearMinMax | ( | Space & | home, | |
| const ValBranch & | vb | |||
| ) | [inline] |
Constructor for initialization.
Definition at line 167 of file val-sel.hpp.
template<class View , bool min>
| Gecode::Int::Branch::ValSelNearMinMax< View, min >::ValSelNearMinMax | ( | Space & | home, | |
| bool | shared, | |||
| ValSelNearMinMax< View, min > & | vs | |||
| ) | [inline] |
Constructor for cloning.
Definition at line 173 of file val-sel.hpp.
Member Function Documentation
template<class View , bool min>
| int Gecode::Int::Branch::ValSelNearMinMax< View, min >::val | ( | const Space & | home, | |
| View | x, | |||
| int | i | |||
| ) | [inline] |
Return value of view x at position i.
Definition at line 180 of file val-sel.hpp.
template<class View , bool min>
| bool Gecode::Int::Branch::ValSelNearMinMax< View, min >::notice | ( | void | ) | const [inline] |
Whether dispose must always be called (that is, notice is needed).
Reimplemented from Gecode::ValSel< View, int >.
Definition at line 205 of file val-sel.hpp.
template<class View , bool min>
| void Gecode::Int::Branch::ValSelNearMinMax< View, min >::dispose | ( | Space & | home | ) | [inline] |
Delete value selection.
Reimplemented from Gecode::ValSel< View, int >.
Definition at line 210 of file val-sel.hpp.
Member Data Documentation
template<class View , bool min>
IntSharedArray Gecode::Int::Branch::ValSelNearMinMax< View, min >::c [protected] |
The documentation for this class was generated from the following files:
- gecode/int/branch.hh (Revision: 13827)
- gecode/int/branch/val-sel.hpp (Revision: 13438)
