Gecode::Advisor Class Reference
Base-class for advisors. More...
#include <gecode/kernel/core.hpp>
Public Member Functions | |
| template<class A> | |
| Advisor (Space &home, Propagator &p, Council< A > &c) | |
| Constructor for creation. | |
| Advisor (Space &home, Advisor &a) | |
| Copying constructor. | |
| const ViewTraceInfo & | operator() (const Space &home) const |
| Provide access to view trace information. | |
Protected Member Functions | |
| Propagator & | propagator (void) const |
| Return the advisor's propagator. | |
Memory management | |
| template<class A> | |
| void | dispose (Space &home, Council< A > &c) |
| Dispose the advisor. | |
| static void * | operator new (size_t s, Space &home) |
| Allocate memory from space. | |
| static void | operator delete (void *p, Space &home) |
| No-op for exceptions. | |
Detailed Description
Base-class for advisors.
Advisors are typically subclassed for each propagator that wants to use advisors. The actual member function that is executed when a variable is changed, must be implemented by the advisor's propagator.
Constructor & Destructor Documentation
◆ Advisor() [1/2]
template<class A>
|
inline |
◆ Advisor() [2/2]
|
inline |
Member Function Documentation
◆ propagator()
|
inlineprotected |
◆ operator()()
|
inline |
◆ dispose()
◆ operator new()
|
inlinestatic |
◆ operator delete()
|
inlinestatic |
The documentation for this class was generated from the following file:
- gecode/kernel/core.hpp
