Generated on Sat Feb 7 2015 02:01:39 for Gecode by doxygen 1.8.9.1
Gecode::Activity::Recorder< View > Class Template Reference

Propagator for recording activity information. More...

#include <activity.hpp>

Classes

class  Idx
 Advisor with index and change information. More...
 

Public Member Functions

 Recorder (Home home, ViewArray< View > &x, Activity &a)
 Constructor for creation. More...
 
virtual Propagatorcopy (Space &home, bool share)
 Copy propagator during cloning. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (crazy so that propagator is likely to run last) More...
 
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Give advice to propagator. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
virtual size_t dispose (Space &home)
 Delete propagator and return its size. More...
 
- Public Member Functions inherited from Gecode::Propagator
ModEventDelta modeventdelta (void) const
 Return the modification event delta. More...
 
double afc (const Space &home) const
 Return the accumlated failure count. More...
 
- Public Member Functions inherited from Gecode::Actor

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< View > &x, Activity &a)
 Post activity recorder propagator. More...
 
- Static Public Member Functions inherited from Gecode::Actor
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...
 

Protected Member Functions

 Recorder (Space &home, bool share, Recorder< View > &p)
 Constructor for cloning p. More...
 
- Protected Member Functions inherited from Gecode::NaryPropagator< View, PC_GEN_NONE >
 NaryPropagator (Space &home, bool share, NaryPropagator &p)
 Constructor for cloning p. More...
 
 NaryPropagator (Space &home, bool share, Propagator &p, ViewArray< View > &x)
 Constructor for rewriting p during cloning. More...
 
 NaryPropagator (Home home, ViewArray< View > &x)
 Constructor for creation. More...
 
- Protected Member Functions inherited from Gecode::Propagator
 Propagator (Home home)
 Constructor for posting. More...
 
 Propagator (Space &home, bool share, Propagator &p)
 Constructor for cloning p. More...
 
Propagatorfwd (void) const
 Return forwarding pointer during copying. More...
 

Protected Attributes

Activity a
 Access to activity information. More...
 
Council< Idxc
 The advisor council. More...
 
- Protected Attributes inherited from Gecode::NaryPropagator< View, PC_GEN_NONE >
ViewArray< View > x
 Array of views. More...
 

Detailed Description

template<class View>
class Gecode::Activity::Recorder< View >

Propagator for recording activity information.

Definition at line 47 of file activity.hpp.

Constructor & Destructor Documentation

template<class View >
Gecode::Activity::Recorder< View >::Recorder ( Space home,
bool  share,
Recorder< View > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 382 of file activity.hpp.

template<class View >
Gecode::Activity::Recorder< View >::Recorder ( Home  home,
ViewArray< View > &  x,
Activity a 
)
inline

Constructor for creation.

Definition at line 246 of file activity.hpp.

Member Function Documentation

template<class View >
Propagator * Gecode::Activity::Recorder< View >::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 391 of file activity.hpp.

template<class View >
PropCost Gecode::Activity::Recorder< View >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function (crazy so that propagator is likely to run last)

Reimplemented from Gecode::NaryPropagator< View, PC_GEN_NONE >.

Definition at line 411 of file activity.hpp.

template<class View >
ExecStatus Gecode::Activity::Recorder< View >::advise ( Space home,
Advisor a,
const Delta d 
)
virtual

Give advice to propagator.

Reimplemented from Gecode::Propagator.

Definition at line 417 of file activity.hpp.

template<class View >
ExecStatus Gecode::Activity::Recorder< View >::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 424 of file activity.hpp.

template<class View >
size_t Gecode::Activity::Recorder< View >::dispose ( Space home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::NaryPropagator< View, PC_GEN_NONE >.

Definition at line 397 of file activity.hpp.

template<class View >
ExecStatus Gecode::Activity::Recorder< View >::post ( Home  home,
ViewArray< View > &  x,
Activity a 
)
inlinestatic

Post activity recorder propagator.

Definition at line 257 of file activity.hpp.

Member Data Documentation

template<class View>
Activity Gecode::Activity::Recorder< View >::a
protected

Access to activity information.

Definition at line 171 of file activity.hpp.

template<class View>
Council<Idx> Gecode::Activity::Recorder< View >::c
protected

The advisor council.

Definition at line 173 of file activity.hpp.


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