Generated on for Gecode by doxygen 1.17.0

Cutoff generator that repeats a cutoff from another cutoff generator. More...

#include <gecode/search.hh>

Public Member Functions

 CutoffRepeat (Cutoff *c, unsigned long long int n)
 Constructor.
virtual unsigned long long int operator() (void) const
 Return the current cutoff value.
virtual unsigned long long int operator++ (void)
 Increment and return the next cutoff value.
virtual ~CutoffRepeat (void)
 Destructor.
 Cutoff (void)
 Default constructor.
virtual ~Cutoff (void)
 Destructor.

Protected Attributes

Cutoffc
 Actual cutoff generator.
unsigned long long int cutoff
unsigned long long int i
unsigned long long int n

Additional Inherited Members

static Cutoffconstant (unsigned long long int scale=Config::slice)
 Create generator for constant sequence with constant s.
static Cutofflinear (unsigned long long int scale=Config::slice)
 Create generator for linear sequence scaled by scale.
static Cutoffgeometric (unsigned long long int scale=Config::slice, double base=Config::base)
static Cutoffluby (unsigned long long int scale=Config::slice)
 Create generator for luby sequence with scale-factor scale.
static Cutoffrnd (unsigned int seed, unsigned long long int min, unsigned long long int max, unsigned long long int n)
static Cutoffappend (Cutoff *c1, unsigned long 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 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 that repeats a cutoff from another cutoff generator.

Definition at line 685 of file search.hh.

Constructor & Destructor Documentation

◆ CutoffRepeat()

Gecode::Search::CutoffRepeat::CutoffRepeat ( Cutoff * c,
unsigned long long int n )
inline

Constructor.

Definition at line 118 of file cutoff.hpp.

◆ ~CutoffRepeat()

Gecode::Search::CutoffRepeat::~CutoffRepeat ( void )
inlinevirtual

Destructor.

Definition at line 123 of file cutoff.hpp.

Member Function Documentation

◆ operator()()

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

Return the current cutoff value.

Implements Gecode::Search::Cutoff.

◆ operator++()

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

Increment and return the next cutoff value.

Implements Gecode::Search::Cutoff.

Member Data Documentation

◆ c

Cutoff* Gecode::Search::CutoffRepeat::c
protected

Actual cutoff generator.

Definition at line 688 of file search.hh.

◆ cutoff

unsigned long long int Gecode::Search::CutoffRepeat::cutoff
protected

Definition at line 690 of file search.hh.

◆ i

unsigned long long int Gecode::Search::CutoffRepeat::i
protected

Definition at line 692 of file search.hh.

◆ n

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

Definition at line 694 of file search.hh.


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