Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0
Gecode::Int::Branch::ValSelAvg< View > Class Template Reference

Value selection class for average of view. More...

#include <branch.hh>

Public Member Functions

 ValSelAvg (Space &home, const ValBranch< Var > &vb)
 Constructor for initialization.
 ValSelAvg (Space &home, ValSelAvg &vs)
 Constructor for cloning.
int val (const Space &home, View x, int i)
 Return value of view x at position i.
Public Member Functions inherited from Gecode::ValSel< View, int >
 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.

Additional Inherited Members

Public Types inherited from Gecode::ValSel< View, int >
typedef View View
 View type.
typedef View::VarType Var
 Corresponding variable type.
typedef int Val
 Value type.

Detailed Description

template<class View>
class Gecode::Int::Branch::ValSelAvg< View >

Value selection class for average of view.

Requires

Definition at line 335 of file branch.hh.

Constructor & Destructor Documentation

◆ ValSelAvg() [1/2]

template<class View>
Gecode::Int::Branch::ValSelAvg< View >::ValSelAvg ( Space & home,
const ValBranch< Var > & vb )

Constructor for initialization.

◆ ValSelAvg() [2/2]

template<class View>
Gecode::Int::Branch::ValSelAvg< View >::ValSelAvg ( Space & home,
ValSelAvg< View > & vs )
inline

Constructor for cloning.

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

Member Function Documentation

◆ val()

template<class View>
int Gecode::Int::Branch::ValSelAvg< View >::val ( const Space & home,
View x,
int i )
inline

Return value of view x at position i.

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


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