Generated on Wed Sep 3 2014 02:16:55 for Gecode by doxygen 1.8.7
Gecode::SetAssign Class Reference

Which value to select for assignment. More...

#include <set.hh>

Public Types

enum  Select {
  SEL_MIN_INC, SEL_MIN_EXC, SEL_MED_INC, SEL_MED_EXC,
  SEL_MAX_INC, SEL_MAX_EXC, SEL_RND_INC, SEL_RND_EXC,
  SEL_VAL_COMMIT
}
 Which value selection. More...
 

Public Member Functions

 SetAssign (Select s=SEL_MIN_INC)
 Initialize with selection strategy s. More...
 
 SetAssign (Select s, Rnd r)
 Initialize with random number generator r. More...
 
 SetAssign (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 value to select for assignment.

Definition at line 1452 of file set.hh.

Member Enumeration Documentation

Which value selection.

Enumerator
SEL_MIN_INC 

Include smallest element.

SEL_MIN_EXC 

Exclude smallest element.

SEL_MED_INC 

Include median element (rounding downwards)

SEL_MED_EXC 

Exclude median element (rounding downwards)

SEL_MAX_INC 

Include largest element.

SEL_MAX_EXC 

Exclude largest element.

SEL_RND_INC 

Include random element.

SEL_RND_EXC 

Exclude random element.

SEL_VAL_COMMIT 

Select value according to user-defined functions.

Definition at line 1455 of file set.hh.

Constructor & Destructor Documentation

Gecode::SetAssign::SetAssign ( Select  s = SEL_MIN_INC)
inline

Initialize with selection strategy s.

Definition at line 41 of file assign.hpp.

Gecode::SetAssign::SetAssign ( Select  s,
Rnd  r 
)
inline

Initialize with random number generator r.

Definition at line 45 of file assign.hpp.

Gecode::SetAssign::SetAssign ( 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

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

Return selection strategy.

Definition at line 53 of file assign.hpp.

Member Data Documentation

Select Gecode::SetAssign::s
protected

Which value to select.

Definition at line 1468 of file set.hh.


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