Gecode::Search::MemoryStop Class Reference
[Stop-objects for stopping search]
#include <search.hh>
Inherits Gecode::Search::Stop.
Detailed Description
Stop-object based on memory consumption
Definition at line 127 of file search.hh.
Public Member Functions | |
MemoryStop (size_t l) | |
Stop if memory limit l (in bytes) is exceeded. | |
size_t | limit (void) const |
Return current limit. | |
void | limit (size_t l) |
Set current limit to l (in bytes). | |
virtual bool | stop (const Statistics &s) |
Return true if memory limit is exceeded. | |
Protected Attributes | |
size_t | l |
Size limit. |
Constructor & Destructor Documentation
|
Stop if memory limit l (in bytes) is exceeded.
|
Member Function Documentation
|
Return current limit.
|
|
Set current limit to l (in bytes).
|
|
Return true if memory limit is exceeded.
Implements Gecode::Search::Stop. |
Member Data Documentation
|
Size limit.
|
The documentation for this class was generated from the following files:
- gecode/search.hh (Revision: 3516)
- gecode/search/stop.cc (Revision: 3511)
- gecode/search/stop.icc (Revision: 3511)