Generated on Tue May 22 09:40:57 2018 for Gecode by doxygen 1.6.3

Gecode::ValSelFunction< View > Class Template Reference
[Generic value selection for brancher based on view and value selection]

User-defined value selection. More...

#include <val-sel.hpp>

List of all members.

Public Types

typedef ValSel< View, typename
BranchTraits< typename
View::VarType >::ValType >
::Val 
Val
 The corresponding value type.
typedef BranchTraits< Var >::Val ValFunction
 The corresponding value function.

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.

Protected Attributes

SharedData< ValFunctionv
 The user-defined value function.

Detailed Description

template<class View>
class Gecode::ValSelFunction< View >

User-defined value selection.

Definition at line 65 of file val-sel.hpp.


Member Typedef Documentation

template<class View>
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 val-sel.hpp.

template<class View>
typedef BranchTraits<Var>::Val Gecode::ValSelFunction< View >::ValFunction

The corresponding value function.

Definition at line 76 of file val-sel.hpp.


Constructor & Destructor Documentation

template<class View >
Gecode::ValSelFunction< View >::ValSelFunction ( Space home,
const ValBranch< Var > &  vb 
) [inline]

Constructor for initialization.

Definition at line 115 of file val-sel.hpp.

template<class View>
Gecode::ValSelFunction< View >::ValSelFunction ( Space home,
ValSelFunction< View > &  vs 
) [inline]

Constructor for cloning.

Definition at line 122 of file val-sel.hpp.


Member Function Documentation

template<class View>
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 127 of file val-sel.hpp.

template<class View >
bool Gecode::ValSelFunction< View >::notice ( void   )  const [inline]

Whether dispose must always be called (that is, notice is needed).

Reimplemented from Gecode::ValSel< View, BranchTraits< View::VarType >::ValType >.

Definition at line 134 of file val-sel.hpp.

template<class View >
void Gecode::ValSelFunction< View >::dispose ( Space home  )  [inline]

Delete value selection.

Reimplemented from Gecode::ValSel< View, BranchTraits< View::VarType >::ValType >.

Definition at line 139 of file val-sel.hpp.


Member Data Documentation

template<class View>
SharedData<ValFunction> Gecode::ValSelFunction< View >::v [protected]

The user-defined value function.

Definition at line 79 of file val-sel.hpp.


The documentation for this class was generated from the following file: