Generated on Mon Nov 25 2013 15:56:20 for Gecode by doxygen 1.8.5
Gecode::IntAssign Class Reference

Which values to select for assignment. More...

#include <int.hh>

Public Types

enum  Select {
  SEL_MIN, SEL_MED, SEL_MAX, SEL_RND,
  SEL_VAL_COMMIT
}
 Which value selection. More...
 

Public Member Functions

 IntAssign (Select s=SEL_MIN)
 Initialize with selection strategy s. More...
 
 IntAssign (Rnd r)
 Initialize with random number generator r. More...
 
 IntAssign (VoidFunction v, VoidFunction c)
 Initialize with value function f and commit function c. More...
 
Select select (void) const
 Return selection strategy. More...
 
- Public Member Functions inherited from Gecode::ValBranch
 ValBranch (void)
 Initialize. More...
 
 ValBranch (Rnd r)
 Initialize with random number generator r. More...
 
 ValBranch (VoidFunction v, VoidFunction c)
 Initialize with value function v and commit function c. More...
 
Rnd rnd (void) const
 Return random number generator. More...
 
VoidFunction val (void) const
 Return value function. More...
 
VoidFunction commit (void) const
 Return commit function. More...
 

Protected Attributes

Select s
 Which value to select. More...
 
- Protected Attributes inherited from Gecode::ValBranch
Rnd r
 Random number generator. More...
 
VoidFunction vf
 Value function. More...
 
VoidFunction cf
 Commit function. More...
 

Detailed Description

Which values to select for assignment.

Definition at line 4009 of file int.hh.

Member Enumeration Documentation

Which value selection.

Enumerator
SEL_MIN 

Select smallest value.

SEL_MED 

Select greatest value not greater than the median.

SEL_MAX 

Select largest value.

SEL_RND 

Select random value.

SEL_VAL_COMMIT 

Select value according to user-defined functions.

Definition at line 4012 of file int.hh.

Constructor & Destructor Documentation

Gecode::IntAssign::IntAssign ( Select  s = SEL_MIN)
inline

Initialize with selection strategy s.

Definition at line 41 of file assign.hpp.

Gecode::IntAssign::IntAssign ( Rnd  r)
inline

Initialize with random number generator r.

Definition at line 45 of file assign.hpp.

Gecode::IntAssign::IntAssign ( VoidFunction  v,
VoidFunction  c 
)
inline

Initialize with value function f and commit function c.

Definition at line 49 of file assign.hpp.

Member Function Documentation

IntAssign::Select Gecode::IntAssign::select ( void  ) const
inline

Return selection strategy.

Definition at line 53 of file assign.hpp.

Member Data Documentation

Select Gecode::IntAssign::s
protected

Which value to select.

Definition at line 4021 of file int.hh.


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