Generated on Mon Jun 29 2015 17:25:32 for Gecode by doxygen 1.8.5
Gecode::Search::CutoffRandom Class Reference

Cutoff generator for the random sequence. More...

#include <search.hh>

Public Member Functions

 CutoffRandom (unsigned int seed, unsigned long int min, unsigned long int max, unsigned long int n)
 Constructor. More...
 
virtual unsigned long int operator() (void) const
 Return the current cutoff value. More...
 
virtual unsigned long int operator++ (void)
 Increment and return the next cutoff value. More...
 
- Public Member Functions inherited from Gecode::Search::Cutoff
 Cutoff (void)
 Default constructor. More...
 
virtual ~Cutoff (void)
 Destructor. More...
 

Protected Attributes

Support::RandomGenerator rnd
 Random number generator. More...
 
unsigned long int min
 Minimum cutoff value. More...
 
unsigned long int n
 Random values. More...
 
unsigned long int step
 Step size. More...
 
unsigned long int cur
 Current value. More...
 

Detailed Description

Cutoff generator for the random sequence.

Definition at line 312 of file search.hh.

Constructor & Destructor Documentation

Gecode::Search::CutoffRandom::CutoffRandom ( unsigned int  seed,
unsigned long int  min,
unsigned long int  max,
unsigned long int  n 
)
inline

Constructor.

Definition at line 100 of file cutoff.hpp.

Member Function Documentation

unsigned long int Gecode::Search::CutoffRandom::operator() ( void  ) const
virtual

Return the current cutoff value.

Implements Gecode::Search::Cutoff.

Definition at line 100 of file cutoff.cpp.

unsigned long int Gecode::Search::CutoffRandom::operator++ ( void  )
virtual

Increment and return the next cutoff value.

Implements Gecode::Search::Cutoff.

Definition at line 95 of file cutoff.cpp.

Member Data Documentation

Support::RandomGenerator Gecode::Search::CutoffRandom::rnd
protected

Random number generator.

Definition at line 315 of file search.hh.

unsigned long int Gecode::Search::CutoffRandom::min
protected

Minimum cutoff value.

Definition at line 317 of file search.hh.

unsigned long int Gecode::Search::CutoffRandom::n
protected

Random values.

Definition at line 319 of file search.hh.

unsigned long int Gecode::Search::CutoffRandom::step
protected

Step size.

Definition at line 321 of file search.hh.

unsigned long int Gecode::Search::CutoffRandom::cur
protected

Current value.

Definition at line 323 of file search.hh.


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