Generated on for Gecode by doxygen 1.17.0
Test::Search::CountingCutoff Class Reference

Constant cutoff counting its deletions. More...

Public Member Functions

 CountingCutoff (std::atomic< unsigned int > &d)
 ~CountingCutoff (void) override
Public Member Functions inherited from Gecode::Search::CutoffConstant
 CutoffConstant (unsigned long long int c)
 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.
 Cutoff (void)
 Default constructor.
virtual ~Cutoff (void)
 Destructor.

Public Attributes

std::atomic< unsigned int > & deleted
 Number of deletions, owned by the test.

Additional Inherited Members

static Cutoff * constant (unsigned long long int scale=Config::slice)
 Create generator for constant sequence with constant s.
static Cutoff * linear (unsigned long long int scale=Config::slice)
 Create generator for linear sequence scaled by scale.
static Cutoff * geometric (unsigned long long int scale=Config::slice, double base=Config::base)
static Cutoff * luby (unsigned long long int scale=Config::slice)
 Create generator for luby sequence with scale-factor scale.
static Cutoff * rnd (unsigned int seed, unsigned long long int min, unsigned long long int max, unsigned long long int n)
static Cutoff * append (Cutoff *c1, unsigned long long int n, Cutoff *c2)
 Append cutoff values from c2 after n values from c1.
static Cutoff * merge (Cutoff *c1, Cutoff *c2)
 Merge cutoff values from c1 with values from c2.
static Cutoff * repeat (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.
Protected Attributes inherited from Gecode::Search::CutoffConstant
unsigned long long int c
 Constant.

Detailed Description

Constant cutoff counting its deletions.

The cutoff exceeds the failures of NoSolution, so a restart-based asset finishes without restarting. Without no-goods, restarts with a smaller constant cutoff would repeat the same search forever.

Definition at line 1821 of file search.cpp.

Constructor & Destructor Documentation

◆ CountingCutoff()

Test::Search::CountingCutoff::CountingCutoff ( std::atomic< unsigned int > & d)
inline

Definition at line 1825 of file search.cpp.

◆ ~CountingCutoff()

Test::Search::CountingCutoff::~CountingCutoff ( void )
inlineoverride

Definition at line 1827 of file search.cpp.

Member Data Documentation

◆ deleted

std::atomic<unsigned int>& Test::Search::CountingCutoff::deleted

Number of deletions, owned by the test.

Definition at line 1824 of file search.cpp.


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