Generated on Sun Feb 17 15:25:20 2019 for Gecode by doxygen 1.6.3

Gecode::Int::Branch::ValSelRnd< View > Class Template Reference
[Integer value selection for brancher]

Value selection class for random value of view. More...

#include <branch.hh>

List of all members.

Public Member Functions

 ValSelRnd (Space &home, const ValBranch< Var > &vb)
 Constructor for initialization.
 ValSelRnd (Space &home, ValSelRnd &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

Rnd r
 The used random number generator.

Detailed Description

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

Value selection class for random value of view.

Requires

Definition at line 353 of file branch.hh.


Constructor & Destructor Documentation

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

Constructor for initialization.

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

Constructor for cloning.

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


Member Function Documentation

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

Return value of view x at position i.

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

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

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

Reimplemented from Gecode::ValSel< View, int >.

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

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

Delete value selection.

Reimplemented from Gecode::ValSel< View, int >.

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


Member Data Documentation

template<class View >
Rnd Gecode::Int::Branch::ValSelRnd< View >::r [protected]

The used random number generator.

Definition at line 357 of file branch.hh.


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