Generated on Sat Feb 7 2015 02:01:39 for Gecode by doxygen 1.8.9.1
Gecode::Advisor Class Reference

Base-class for advisors. More...

#include <core.hpp>

Public Member Functions

template<class A >
 Advisor (Space &home, Propagator &p, Council< A > &c)
 Constructor for creation. More...
 
 Advisor (Space &home, bool share, Advisor &a)
 Copying constructor. More...
 

Protected Member Functions

Propagatorpropagator (void) const
 Return the advisor's propagator. More...
 

Memory management

template<class A >
void dispose (Space &home, Council< A > &c)
 Dispose the advisor. More...
 
static void * operator new (size_t s, Space &home)
 Allocate memory from space. More...
 
static void operator delete (void *p, Space &home)
 No-op for exceptions. More...
 

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.

Definition at line 926 of file core.hpp.

Constructor & Destructor Documentation

template<class A >
Gecode::Advisor::Advisor ( Space home,
Propagator p,
Council< A > &  c 
)
inline

Constructor for creation.

Definition at line 3234 of file core.hpp.

Gecode::Advisor::Advisor ( Space home,
bool  share,
Advisor a 
)
inline

Copying constructor.

Definition at line 3242 of file core.hpp.

Member Function Documentation

Propagator & Gecode::Advisor::propagator ( void  ) const
inlineprotected

Return the advisor's propagator.

Definition at line 3260 of file core.hpp.

template<class A >
void Gecode::Advisor::dispose ( Space home,
Council< A > &  c 
)
inline

Dispose the advisor.

Definition at line 3267 of file core.hpp.

void * Gecode::Advisor::operator new ( size_t  s,
Space home 
)
inlinestatic

Allocate memory from space.

Definition at line 2593 of file core.hpp.

void Gecode::Advisor::operator delete ( void *  p,
Space home 
)
inlinestatic

No-op for exceptions.

Definition at line 2591 of file core.hpp.


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