Generated on Thu Mar 16 2017 03:24:28 for Gecode by doxygen 1.8.13
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 (record so that propagator runs last) More...
 
virtual void reschedule (Space &home)
 Schedule function. 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...
 
unsigned int id (void) const
 Return propagator id. More...
 
PropagatorGroup group (void) const
 Return group propagator belongs to. More...
 
void group (PropagatorGroup g)
 Add propagator to group g. More...
 
bool disabled (void) const
 Whether propagator is currently disabled. More...
 
void kill (Space &home)
 Kill propagator. More...
 
void disable (void)
 Disable propagator. More...
 
void enable (void)
 Enable propagator. More...
 
- Public Member Functions inherited from Gecode::Actor
virtual ~Actor (void)
 To avoid warnings. More...
 

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)
 Not used. More...
 
static void operator delete (void *p)
 Not used. 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...
 

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...
 
GPI::Infogpi (void)
 Provide access to global propagator information. 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

◆ Recorder() [1/2]

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

Constructor for cloning p.

Definition at line 372 of file activity.hpp.

◆ Recorder() [2/2]

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

Constructor for creation.

Definition at line 244 of file activity.hpp.

Member Function Documentation

◆ copy()

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 381 of file activity.hpp.

◆ cost()

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

Cost function (record so that propagator runs last)

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

Definition at line 401 of file activity.hpp.

◆ reschedule()

template<class View >
void Gecode::Activity::Recorder< View >::reschedule ( Space home)
virtual

Schedule function.

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

Definition at line 407 of file activity.hpp.

◆ advise()

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 413 of file activity.hpp.

◆ propagate()

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 420 of file activity.hpp.

◆ dispose()

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 387 of file activity.hpp.

◆ post()

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

Post activity recorder propagator.

Definition at line 255 of file activity.hpp.

Member Data Documentation

◆ a

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

Access to activity information.

Definition at line 167 of file activity.hpp.

◆ c

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

The advisor council.

Definition at line 169 of file activity.hpp.


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