Gecode::Search::CutoffRandom Class Reference
[Search engines]
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. | |
| 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
unsigned long int Gecode::Search::CutoffRandom::min [protected] |
unsigned long int Gecode::Search::CutoffRandom::n [protected] |
unsigned long int Gecode::Search::CutoffRandom::step [protected] |
unsigned long int Gecode::Search::CutoffRandom::cur [protected] |
The documentation for this class was generated from the following files:
- gecode/search.hh
- gecode/search/cutoff.cpp
- gecode/search/cutoff.hpp
