Generated on Sat Feb 7 2015 02:01:46 for Gecode by doxygen 1.8.9.1
Gecode::Int::Branch::ValSelNearIncDec< View, inc > Class Template Reference

Value selection class for nearest value. More...

#include <branch.hh>

Public Member Functions

 ValSelNearIncDec (Space &home, const ValBranch &vb)
 Constructor for initialization. More...
 
 ValSelNearIncDec (Space &home, bool shared, ValSelNearIncDec &vs)
 Constructor for cloning. More...
 
int val (const Space &home, View x, int i)
 Return value of view x at position i. More...
 
bool notice (void) const
 Whether dispose must always be called (that is, notice is needed) More...
 
void dispose (Space &home)
 Delete value selection. More...
 
- Public Member Functions inherited from Gecode::ValSel< View, int >
 ValSel (Space &home, const ValBranch &vb)
 Constructor for initialization. More...
 
 ValSel (Space &home, bool shared, ValSel< View, Val > &vs)
 Constructor for cloning. More...
 
bool notice (void) const
 Whether dispose must always be called (that is, notice is needed) More...
 
void dispose (Space &home)
 Delete value selection. More...
 

Protected Attributes

IntSharedArray c
 The used values. More...
 

Additional Inherited Members

- Public Types inherited from Gecode::ValSel< View, int >
typedef View View
 View type. More...
 
typedef int Val
 Value type. More...
 

Detailed Description

template<class View, bool inc>
class Gecode::Int::Branch::ValSelNearIncDec< View, inc >

Value selection class for nearest value.

Requires

Definition at line 396 of file branch.hh.

Constructor & Destructor Documentation

template<class View , bool inc>
Gecode::Int::Branch::ValSelNearIncDec< View, inc >::ValSelNearIncDec ( Space home,
const ValBranch vb 
)
inline

Constructor for initialization.

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

template<class View , bool inc>
Gecode::Int::Branch::ValSelNearIncDec< View, inc >::ValSelNearIncDec ( Space home,
bool  shared,
ValSelNearIncDec< View, inc > &  vs 
)
inline

Constructor for cloning.

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

Member Function Documentation

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

Return value of view x at position i.

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

template<class View , bool inc>
bool Gecode::Int::Branch::ValSelNearIncDec< View, inc >::notice ( void  ) const
inline

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

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

template<class View , bool inc>
void Gecode::Int::Branch::ValSelNearIncDec< View, inc >::dispose ( Space home)
inline

Delete value selection.

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

Member Data Documentation

template<class View , bool inc>
IntSharedArray Gecode::Int::Branch::ValSelNearIncDec< View, inc >::c
protected

The used values.

Definition at line 399 of file branch.hh.


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