Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0

Cutoff generator for linear sequence. More...

#include <search.hh>

Public Member Functions

 CutoffLinear (unsigned long int scale)
 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.
 
- Public Member Functions inherited from Gecode::Search::Cutoff
 Cutoff (void)
 Default constructor.
 
virtual ~Cutoff (void)
 Destructor.
 

Protected Attributes

unsigned long int scale
 Scale factor.
 
unsigned long int n
 Next number in sequence.
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Search::Cutoff
static Cutoffconstant (unsigned long int scale=Config::slice)
 Create generator for constant sequence with constant s.
 
static Cutofflinear (unsigned long int scale=Config::slice)
 Create generator for linear sequence scaled by scale.
 
static Cutoffgeometric (unsigned long int scale=Config::slice, double base=Config::base)
 
static Cutoffluby (unsigned long int scale=Config::slice)
 Create generator for luby sequence with scale-factor scale.
 
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.
 
static Cutoffmerge (Cutoff *c1, Cutoff *c2)
 Merge cutoff values from c1 with values from c2.
 
static Cutoffrepeat (Cutoff *c, unsigned long int n)
 Create generator that repeats n times each cutoff value from c.
 
- Static Public Member Functions inherited from Gecode::HeapAllocated
static void * operator new (size_t s)
 Memory management.
 
static void operator delete (void *p)
 Free memory allocated from heap.
 

Detailed Description

Cutoff generator for linear sequence.

Definition at line 542 of file search.hh.

Constructor & Destructor Documentation

◆ CutoffLinear()

Gecode::Search::CutoffLinear::CutoffLinear ( unsigned long int scale)
inline

Constructor.

Definition at line 52 of file cutoff.hpp.

Member Function Documentation

◆ operator()()

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

Return the current cutoff value.

Implements Gecode::Search::Cutoff.

Definition at line 54 of file cutoff.cpp.

◆ operator++()

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

Increment and return the next cutoff value.

Implements Gecode::Search::Cutoff.

Definition at line 58 of file cutoff.cpp.

Member Data Documentation

◆ scale

unsigned long int Gecode::Search::CutoffLinear::scale
protected

Scale factor.

Definition at line 545 of file search.hh.

◆ n

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

Next number in sequence.

Definition at line 547 of file search.hh.


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