Gecode::ValSelFunction< View > Class Template Reference
[Generic value selection for brancher based on view and value selection]
User-defined value selection. More...
#include <brancher-val-sel.hpp>
Public Types | |
typedef ValSel< View, typename BranchTraits< typename View::VarType >::ValType > ::Val | Val |
The corresponding value type. | |
typedef View::VarType | Var |
The corresponding variable type. | |
typedef BranchTraits< Var >::Val | ValFunction |
The corresponding value function. | |
Public Member Functions | |
ValSelFunction (Space &home, const ValBranch &vb) | |
Constructor for initialization. | |
ValSelFunction (Space &home, bool shared, 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. | |
Protected Attributes | |
ValFunction | v |
The user-defined value function. |
Detailed Description
template<class View>
class Gecode::ValSelFunction< View >
User-defined value selection.
Definition at line 67 of file brancher-val-sel.hpp.
Member Typedef Documentation
typedef ValSel<View, typename BranchTraits<typename View::VarType>::ValType>::Val Gecode::ValSelFunction< View >::Val |
The corresponding value type.
Reimplemented from Gecode::ValSel< View, BranchTraits< View::VarType >::ValType >.
Definition at line 74 of file brancher-val-sel.hpp.
typedef View::VarType Gecode::ValSelFunction< View >::Var |
The corresponding variable type.
Definition at line 76 of file brancher-val-sel.hpp.
typedef BranchTraits<Var>::Val Gecode::ValSelFunction< View >::ValFunction |
The corresponding value function.
Definition at line 78 of file brancher-val-sel.hpp.
Constructor & Destructor Documentation
Gecode::ValSelFunction< View >::ValSelFunction | ( | Space & | home, | |
const ValBranch & | vb | |||
) | [inline] |
Constructor for initialization.
Definition at line 113 of file brancher-val-sel.hpp.
Gecode::ValSelFunction< View >::ValSelFunction | ( | Space & | home, | |
bool | shared, | |||
ValSelFunction< View > & | vs | |||
) | [inline] |
Constructor for cloning.
Definition at line 118 of file brancher-val-sel.hpp.
Member Function Documentation
ValSelFunction< View >::Val Gecode::ValSelFunction< View >::val | ( | const Space & | home, | |
View | x, | |||
int | i | |||
) | [inline] |
Return user-defined value of view x at position i.
Definition at line 123 of file brancher-val-sel.hpp.
Member Data Documentation
ValFunction Gecode::ValSelFunction< View >::v [protected] |
The user-defined value function.
Definition at line 81 of file brancher-val-sel.hpp.
The documentation for this class was generated from the following file:
- gecode/kernel/brancher-val-sel.hpp (Revision: 13123)