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. | |
virtual Propagator * | copy (Space &home, bool share) |
Copy propagator during cloning. | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (crazy so that propagator is likely to run last). | |
virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
Give advice to propagator. | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< View > &x, Activity &a) |
Post activity recorder propagator. | |
Protected Member Functions | |
Recorder (Space &home, bool share, Recorder< View > &p) | |
Constructor for cloning p. | |
Protected Attributes | |
Activity | a |
Access to activity information. | |
Council< Idx > | c |
The advisor council. |
Detailed Description
template<class View>
class Gecode::Activity::Recorder< View >
Propagator for recording activity information.
Definition at line 148 of file activity.hpp.
Constructor & Destructor Documentation
Gecode::Activity::Recorder< View >::Recorder | ( | Space & | home, | |
bool | share, | |||
Recorder< View > & | p | |||
) | [inline, protected] |
Constructor for cloning p.
Definition at line 382 of file activity.hpp.
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
Propagator * Gecode::Activity::Recorder< View >::copy | ( | Space & | home, | |
bool | share | |||
) | [inline, virtual] |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 391 of file activity.hpp.
PropCost Gecode::Activity::Recorder< View >::cost | ( | const Space & | home, | |
const ModEventDelta & | med | |||
) | const [inline, 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.
ExecStatus Gecode::Activity::Recorder< View >::advise | ( | Space & | home, | |
Advisor & | a, | |||
const Delta & | d | |||
) | [inline, virtual] |
Give advice to propagator.
Reimplemented from Gecode::Propagator.
Definition at line 417 of file activity.hpp.
ExecStatus Gecode::Activity::Recorder< View >::propagate | ( | Space & | home, | |
const ModEventDelta & | med | |||
) | [inline, virtual] |
size_t Gecode::Activity::Recorder< View >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::NaryPropagator< View, PC_GEN_NONE >.
Definition at line 397 of file activity.hpp.
ExecStatus Gecode::Activity::Recorder< View >::post | ( | Home | home, | |
ViewArray< View > & | x, | |||
Activity & | a | |||
) | [inline, static] |
Post activity recorder propagator.
Definition at line 257 of file activity.hpp.
Member Data Documentation
Activity Gecode::Activity::Recorder< View >::a [protected] |
Access to activity information.
Definition at line 171 of file activity.hpp.
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:
- gecode/kernel/activity.hpp (Revision: 13949)