Generated on Sat Nov 11 01:12:22 2006 for Gecode by doxygen 1.5.1

Gecode::Search::MemoryStop Class Reference
[Stop-objects for stopping search]

#include <search.hh>

Inherits Gecode::Search::Stop.

List of all members.


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

Gecode::Search::MemoryStop::MemoryStop ( size_t  l  )  [inline]

Stop if memory limit l (in bytes) is exceeded.

Definition at line 42 of file stop.icc.


Member Function Documentation

size_t Gecode::Search::MemoryStop::limit ( void   )  const [inline]

Return current limit.

Definition at line 45 of file stop.icc.

void Gecode::Search::MemoryStop::limit ( size_t  l  )  [inline]

Set current limit to l (in bytes).

Definition at line 50 of file stop.icc.

bool Gecode::Search::MemoryStop::stop ( const Statistics s  )  [virtual]

Return true if memory limit is exceeded.

Implements Gecode::Search::Stop.

Definition at line 31 of file stop.cc.


Member Data Documentation

size_t Gecode::Search::MemoryStop::l [protected]

Size limit.

Definition at line 130 of file search.hh.


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