Gecode::Search::NodeStop Class Reference
Stop-object based on number of nodes More...
#include <gecode/search.hh>
Public Member Functions | |
| NodeStop (unsigned long long int l) | |
| Stop if node limit l is exceeded. | |
| NodeStop (const NodeStop &s) | |
| Copy constructor. | |
| NodeStop & | operator= (const NodeStop &s) |
| Assignment operator. | |
| unsigned long long int | limit (void) const |
| Return current limit. | |
| void | limit (unsigned long long int l) |
| Set current limit to l nodes. | |
| virtual bool | stop (const Statistics &s, const Options &o) |
| Return true if node limit is exceeded. | |
| Stop (void) | |
| Default constructor. | |
| virtual | ~Stop (void) |
| Destructor. | |
Protected Attributes | |
| std::atomic< unsigned long long int > | l |
| Node limit. | |
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-object based on number of nodes
The number of nodes reported (by the statistics) is the number since the engine started exploration. It is not the number since the last stop!
Constructor & Destructor Documentation
◆ NodeStop() [1/2]
|
inline |
◆ NodeStop() [2/2]
|
inline |
Member Function Documentation
◆ operator=()
◆ limit() [1/2]
|
inline |
◆ limit() [2/2]
|
inline |
◆ stop()
|
virtual |
Return true if node limit is exceeded.
Implements Gecode::Search::Stop.
Member Data Documentation
◆ l
|
protected |
The documentation for this class was generated from the following files:
