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

Stop after five failures, or after many checks as a safeguard. More...

Public Member Functions

bool stop (const Gecode::Search::Statistics &s, const Gecode::Search::Options &) override
 Stop search, if returns true.
 Stop (void)
 Default constructor.
virtual ~Stop (void)
 Destructor.

Public Attributes

unsigned long int checks = 0
 Number of checks.

Additional Inherited Members

static Stop * node (unsigned long long int l)
 Stop if node limit l has been exceeded.
static Stop * fail (unsigned long long int l)
 Stop if failure limit l has been exceeded.
static Stop * time (double l)
 Stop if time limit l (in milliseconds) has been exceeded.
static Stop * restart (unsigned long long int l)
 Stop if restart limit l has been exceeded.
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

Stop after five failures, or after many checks as a safeguard.

Definition at line 1455 of file search.cpp.

Member Function Documentation

◆ stop()

bool Test::Search::FiveFailures::stop ( const Gecode::Search::Statistics & s,
const Gecode::Search::Options & o )
inlineoverridevirtual

Stop search, if returns true.

Implements Gecode::Search::Stop.

Definition at line 1459 of file search.cpp.

Member Data Documentation

◆ checks

unsigned long int Test::Search::FiveFailures::checks = 0

Number of checks.

Definition at line 1458 of file search.cpp.


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