Generated on Fri Mar 20 15:57:08 2015 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 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

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: