Generated on Mon Aug 25 11:35:49 2008 for Gecode by doxygen 1.5.6

Gecode::Advisor Class Reference
[Programming actors]

Inherits Gecode::ActorLink.

Inherited by Gecode::Int::Extensional::LayeredGraph< View >::Index, Gecode::Set::Int::ChannelBool< View >::IndexAdvisor, and Gecode::ViewAdvisor< View >.

List of all members.


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 843 of file core.icc.


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.

Public Member Functions

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

Protected Member Functions

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

Constructor & Destructor Documentation

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

Constructor for creation.

Definition at line 1748 of file core.icc.

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

Copying constructor.

Definition at line 1757 of file core.icc.


Member Function Documentation

Propagator * Gecode::Advisor::propagator ( void   )  const [inline, protected]

Return the advisor's propagator.

Definition at line 1775 of file core.icc.

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

Dispose the advisor.

Reimplemented in Gecode::ViewAdvisor< View >, and Gecode::Set::Int::ChannelBool< View >::IndexAdvisor.

Definition at line 1782 of file core.icc.

void * Gecode::Advisor::operator new ( size_t  s,
Space home 
) [inline, static]

Allocate memory from space.

Definition at line 1406 of file core.icc.

void Gecode::Advisor::operator delete ( void *  p,
Space home 
) [inline, static]

No-op for exceptions.

Definition at line 1404 of file core.icc.


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