User-defined value selection. More...
#include <gecode/kernel/branch/val-sel.hpp>
Public Types | |
| typedef ValSel< View, typenameBranchTraits< typenameView::VarType >::ValType >::Var | Var |
| The corresponding variable type. | |
| typedef ValSel< View, typenameBranchTraits< typenameView::VarType >::ValType >::Val | Val |
| The corresponding value type. | |
| typedef BranchTraits< Var >::Val | ValFunction |
| The corresponding value function. | |
| Public Types inherited from Gecode::ValSel< View, BranchTraits< View::VarType >::ValType > | |
| typedef View | View |
| View type. | |
| typedef View::VarType | Var |
| Corresponding variable type. | |
| typedef BranchTraits< View::VarType >::ValType | Val |
| Value type. | |
Public Member Functions | |
| ValSelFunction (Space &home, const ValBranch< Var > &vb) | |
| Constructor for initialization. | |
| ValSelFunction (Space &home, ValSelFunction< View > &vs) | |
| Constructor for cloning. | |
| Val | val (const Space &home, View x, int i) |
| Return user-defined 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. | |
| Public Member Functions inherited from Gecode::ValSel< View, BranchTraits< View::VarType >::ValType > | |
| ValSel (Space &home, const ValBranch< Var > &vb) | |
| Constructor for initialization. | |
| bool | notice (void) const |
| Whether dispose must always be called (that is, notice is needed). | |
| void | dispose (Space &home) |
| Delete value selection. | |
Protected Attributes | |
| SharedData< ValFunction > | v |
| The user-defined value function. | |
Detailed Description
class Gecode::ValSelFunction< View >
User-defined value selection.
Definition at line 65 of file val-sel.hpp.
Member Typedef Documentation
◆ Var
| typedef ValSel<View,typenameBranchTraits<typenameView::VarType>::ValType>::Var Gecode::ValSelFunction< View >::Var |
The corresponding variable type.
Definition at line 72 of file val-sel.hpp.
◆ Val
| typedef ValSel<View,typenameBranchTraits<typenameView::VarType>::ValType>::Val Gecode::ValSelFunction< View >::Val |
The corresponding value type.
Definition at line 76 of file val-sel.hpp.
◆ ValFunction
| typedef BranchTraits<Var>::Val Gecode::ValSelFunction< View >::ValFunction |
The corresponding value function.
Definition at line 78 of file val-sel.hpp.
Constructor & Destructor Documentation
◆ ValSelFunction() [1/2]
|
inline |
Constructor for initialization.
Definition at line 117 of file val-sel.hpp.
◆ ValSelFunction() [2/2]
|
inline |
Constructor for cloning.
Definition at line 125 of file val-sel.hpp.
Member Function Documentation
◆ val()
|
inline |
Return user-defined value of view x at position i.
Definition at line 130 of file val-sel.hpp.
◆ notice()
|
inline |
Whether dispose must always be called (that is, notice is needed).
Definition at line 137 of file val-sel.hpp.
◆ dispose()
|
inline |
Delete value selection.
Definition at line 142 of file val-sel.hpp.
Member Data Documentation
◆ v
|
protected |
The user-defined value function.
Definition at line 81 of file val-sel.hpp.
The documentation for this class was generated from the following file:
- gecode/kernel/branch/val-sel.hpp
