Stop-object based on memory consumption
More...
#include <search.hh>
List of all members.
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, const Options &o) |
| Return true if memory limit is exceeded.
|
| Stop (void) |
| Default constructor.
|
virtual | ~Stop (void) |
| Destructor.
|
Protected Attributes |
size_t | l |
| Size limit.
|
Detailed Description
Stop-object based on memory consumption
Definition at line 214 of file search.hh.
Constructor & Destructor Documentation
Gecode::Search::MemoryStop::MemoryStop |
( |
size_t |
l | ) |
|
|
inline |
Stop if memory limit l (in bytes) is exceeded.
Definition at line 58 of file stop.hpp.
Member Function Documentation
size_t Gecode::Search::MemoryStop::limit |
( |
void |
| ) |
const |
|
inline |
Return current limit.
Definition at line 61 of file stop.hpp.
void Gecode::Search::MemoryStop::limit |
( |
size_t |
l | ) |
|
|
inline |
Set current limit to l (in bytes)
Definition at line 66 of file stop.hpp.
Member Data Documentation
size_t Gecode::Search::MemoryStop::l |
|
protected |
The documentation for this class was generated from the following files: