Generated on Sun Mar 19 2017 08:30:25 for Gecode by doxygen 1.8.13
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...
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Search::Cutoff
static void * operator new (size_t s)
 Memory management. More...
 
static void operator delete (void *p)
 Free memory allocated from heap. More...
 
static Cutoffconstant (unsigned long int scale=1U)
 Create generator for constant sequence with constant s. More...
 
static Cutofflinear (unsigned long int scale=1U)
 Create generator for linear sequence scaled by scale. More...
 
static Cutoffgeometric (unsigned long int scale=1U, double base=1.5)
 
static Cutoffluby (unsigned long int scale=1U)
 Create generator for luby sequence with scale-factor scale. More...
 
static Cutoffrnd (unsigned int seed, unsigned long int min, unsigned long int max, unsigned long int n)
 
static Cutoffappend (Cutoff *c1, unsigned long int n, Cutoff *c2)
 Append cutoff values from c2 after n values from c1. More...
 
static Cutoffmerge (Cutoff *c1, Cutoff *c2)
 Merge cutoff values from c1 with values from c2. More...
 
static Cutoffrepeat (Cutoff *c, unsigned long int n)
 Create generator that repeats n times each cutoff value from c. More...
 

Detailed Description

Cutoff generator for the random sequence.

Definition at line 312 of file search.hh.

Constructor & Destructor Documentation

◆ CutoffRandom()

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

◆ operator()()

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.

◆ operator++()

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

◆ rnd

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

Random number generator.

Definition at line 315 of file search.hh.

◆ min

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

Minimum cutoff value.

Definition at line 317 of file search.hh.

◆ n

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

Random values.

Definition at line 319 of file search.hh.

◆ step

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

Step size.

Definition at line 321 of file search.hh.

◆ cur

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: