Generated on Sat May 25 2013 18:00:50 for Gecode by doxygen 1.8.3.1
Gecode::Search::MemoryStop Class Reference

Stop-object based on memory consumption More...

#include <search.hh>

Public Member Functions

 MemoryStop (size_t l)
 Stop if memory limit l (in bytes) is exceeded. More...
 
size_t limit (void) const
 Return current limit. More...
 
void limit (size_t l)
 Set current limit to l (in bytes) More...
 
virtual bool stop (const Statistics &s, const Options &o)
 Return true if memory limit is exceeded. More...
 
- Public Member Functions inherited from Gecode::Search::Stop
 Stop (void)
 Default constructor. More...
 
virtual ~Stop (void)
 Destructor. More...
 

Protected Attributes

size_t l
 Size limit. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Search::Stop
static void * operator new (size_t s)
 Allocate memory from heap. More...
 
static void operator delete (void *p)
 Free memory allocated from heap. More...
 

Detailed Description

Stop-object based on memory consumption

Definition at line 276 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 65 of file stop.hpp.

Member Function Documentation

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

Return current limit.

Definition at line 68 of file stop.hpp.

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

Set current limit to l (in bytes)

Definition at line 73 of file stop.hpp.

bool Gecode::Search::MemoryStop::stop ( const Statistics s,
const Options o 
)
virtual

Return true if memory limit is exceeded.

Implements Gecode::Search::Stop.

Definition at line 47 of file stop.cpp.

Member Data Documentation

size_t Gecode::Search::MemoryStop::l
protected

Size limit.

Definition at line 279 of file search.hh.


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