Generated on Thu Apr 11 14:00:08 2019 for Gecode by doxygen 1.6.3

Gecode::Search::CutoffRandom Class Reference
[Search engines]

Cutoff generator for the random sequence. More...

#include <search.hh>

List of all members.

Public Member Functions

 CutoffRandom (unsigned int seed, unsigned long int min, unsigned long int max, unsigned long int n)
 Constructor.
virtual unsigned long int operator() (void) const
 Return the current cutoff value.
virtual unsigned long int operator++ (void)
 Increment and return the next cutoff value.

Protected Attributes

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

Detailed Description

Cutoff generator for the random sequence.

Definition at line 609 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 88 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 96 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 91 of file cutoff.cpp.


Member Data Documentation

Random number generator.

Definition at line 612 of file search.hh.

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

Minimum cutoff value.

Definition at line 614 of file search.hh.

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

Random values.

Definition at line 616 of file search.hh.

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

Step size.

Definition at line 618 of file search.hh.

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

Current value.

Definition at line 620 of file search.hh.


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