Generated on Fri Jun 2 2017 20:49:43 for Gecode by doxygen 1.8.13
Gecode::Search::CutoffAppend Class Reference

Cutoff generator appending two cutoff generators. More...

#include <search.hh>

Public Member Functions

 CutoffAppend (Cutoff *c1, unsigned long int n, Cutoff *c2)
 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...
 
virtual ~CutoffAppend (void)
 Destructor. More...
 
- Public Member Functions inherited from Gecode::Search::Cutoff
 Cutoff (void)
 Default constructor. More...
 
virtual ~Cutoff (void)
 Destructor. More...
 

Protected Attributes

Cutoffc1
 First cutoff generators. More...
 
Cutoffc2
 Second cutoff generators. More...
 
unsigned long int n
 How many number to take from the first. 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 appending two cutoff generators.

Definition at line 339 of file search.hh.

Constructor & Destructor Documentation

◆ CutoffAppend()

Gecode::Search::CutoffAppend::CutoffAppend ( Cutoff c1,
unsigned long int  n,
Cutoff c2 
)
inline

Constructor.

Definition at line 112 of file cutoff.hpp.

◆ ~CutoffAppend()

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

Destructor.

Definition at line 115 of file cutoff.hpp.

Member Function Documentation

◆ operator()()

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

Return the current cutoff value.

Implements Gecode::Search::Cutoff.

Definition at line 106 of file cutoff.cpp.

◆ operator++()

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

Increment and return the next cutoff value.

Implements Gecode::Search::Cutoff.

Definition at line 114 of file cutoff.cpp.

Member Data Documentation

◆ c1

Cutoff* Gecode::Search::CutoffAppend::c1
protected

First cutoff generators.

Definition at line 342 of file search.hh.

◆ c2

Cutoff* Gecode::Search::CutoffAppend::c2
protected

Second cutoff generators.

Definition at line 344 of file search.hh.

◆ n

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

How many number to take from the first.

Definition at line 346 of file search.hh.


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