Gecode::Search::EngineCtrl Class Reference
#include <search.hh>
Inherits Gecode::Search::Statistics.
Inherited by Gecode::Search::BabEngine, Gecode::Search::DfsEngine, and Gecode::Search::ProbeEngine.
Detailed Description
Search engine control including memory information
Definition at line 192 of file search.hh.
Public Member Functions | |
EngineCtrl (Stop *st, size_t sz) | |
Initialize with stop-object st and space size sz. | |
void | start (void) |
Reset stop information. | |
bool | stop (size_t sz) |
Check whether engine must be stopped (with additional stackspace sz). | |
bool | stopped (void) const |
Check whether engine has been stopped. | |
void | push (const Space *s, const BranchingDesc *d) |
New space s and branching description d get pushed on stack. | |
void | constrained (const Space *s1, const Space *s2) |
Space s1 is replaced by space s2 due to constraining. | |
void | adapt (const Space *s) |
New space s is added for adaptive recomputation. | |
void | pop (const Space *s, const BranchingDesc *d) |
Space s and branching description d get popped from stack. | |
void | lao (const Space *s) |
Space s gets used for LAO (removed from stack). | |
void | current (const Space *s) |
Space s becomes current space (s = NULL: current space deleted). | |
void | reset (const Space *s) |
Reset statistics for space s. | |
Protected Attributes | |
Stop * | st |
Stop-object to be used | |
bool | _stopped |
Whether engine has been stopped. | |
size_t | mem_space |
Memory required for a single space. | |
size_t | mem_cur |
Memory for the current space (including memory for caching). | |
size_t | mem_total |
Current total memory. |
Constructor & Destructor Documentation
|
Initialize with stop-object st and space size sz.
Definition at line 25 of file engine-ctrl.icc. |
Member Function Documentation
|
Reset stop information.
Definition at line 31 of file engine-ctrl.icc. |
|
Check whether engine must be stopped (with additional stackspace sz).
Definition at line 36 of file engine-ctrl.icc. |
|
Check whether engine has been stopped.
Definition at line 46 of file engine-ctrl.icc. |
|
New space s and branching description d get pushed on stack.
Definition at line 51 of file engine-ctrl.icc. |
|
Space s1 is replaced by space s2 due to constraining.
Definition at line 67 of file engine-ctrl.icc. |
|
New space s is added for adaptive recomputation.
Definition at line 60 of file engine-ctrl.icc. |
|
Space s and branching description d get popped from stack.
Definition at line 80 of file engine-ctrl.icc. |
|
Space s gets used for LAO (removed from stack).
Definition at line 75 of file engine-ctrl.icc. |
|
Space s becomes current space (s = NULL: current space deleted).
Definition at line 87 of file engine-ctrl.icc. |
|
Reset statistics for space s.
Definition at line 100 of file engine-ctrl.icc. |
Member Data Documentation
|
Stop-object to be used
|
|
Whether engine has been stopped.
|
|
Memory required for a single space.
|
|
Memory for the current space (including memory for caching).
|
|
Current total memory.
|
The documentation for this class was generated from the following files:
- gecode/search.hh (Revision: 3516)
- gecode/search/engine-ctrl.icc (Revision: 3511)