Propagator for recording trace information. More...
#include <trace-recorder.hpp>
Classes | |
class | Idx |
Advisor with index information. More... | |
class | Slack |
Collection of slack values. More... | |
Public Types | |
typedef TraceTraits< View >::TraceView | TraceView |
The corresponding duplicate view type. More... | |
typedef TraceTraits< View >::TraceDelta | TraceDelta |
The corresponding trace delta type. More... | |
typedef TraceTraits< View >::SlackValue | SlackValue |
The corresponding slack value type. More... | |
Public Member Functions | |
TraceRecorder (Home home, ViewArray< View > &x, TraceFilter tf, int te, Tracer< View > &t) | |
Constructor for creation. More... | |
virtual Propagator * | copy (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... | |
![]() | |
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... | |
![]() | |
virtual | ~Actor (void) |
To avoid warnings. More... | |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< View > &x, TraceFilter tf, int te, Tracer< View > &t) |
Post activity recorder propagator. More... | |
![]() | |
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 | |
TraceRecorder (Space &home, bool share, TraceRecorder &p) | |
Constructor for cloning p. More... | |
![]() | |
Propagator (Home home) | |
Constructor for posting. More... | |
Propagator (Space &home, bool share, Propagator &p) | |
Constructor for cloning p. More... | |
Propagator * | fwd (void) const |
Return forwarding pointer during copying. More... | |
GPI::Info & | gpi (void) |
Provide access to global propagator information. More... | |
Protected Attributes | |
ViewArray< TraceView > | o |
Duplicate views (old information) More... | |
ViewArray< View > | n |
Original views (new information) More... | |
Council< Idx > | c |
The advisor council. More... | |
TraceFilter | tf |
The trace filter. More... | |
int | te |
Which events to trace. More... | |
Tracer< View > & | t |
The actual tracer. More... | |
Slack | s |
Slack information. More... | |
Trace information | |
const View::VarType | operator[] (int i) const |
Return variable being traced at position i. More... | |
int | size (void) const |
Return number of variables being traced. More... | |
const Slack & | slack (void) const |
Provide access to slack information. More... | |
Propagator for recording trace information.
Definition at line 56 of file trace-recorder.hpp.
typedef TraceTraits<View>::TraceView Gecode::TraceRecorder< View >::TraceView |
The corresponding duplicate view type.
Definition at line 59 of file trace-recorder.hpp.
typedef TraceTraits<View>::TraceDelta Gecode::TraceRecorder< View >::TraceDelta |
The corresponding trace delta type.
Definition at line 61 of file trace-recorder.hpp.
typedef TraceTraits<View>::SlackValue Gecode::TraceRecorder< View >::SlackValue |
The corresponding slack value type.
Definition at line 63 of file trace-recorder.hpp.
|
inlineprotected |
Constructor for cloning p.
Definition at line 250 of file trace-recorder.hpp.
|
inline |
Constructor for creation.
Definition at line 213 of file trace-recorder.hpp.
|
virtual |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 261 of file trace-recorder.hpp.
|
virtual |
Cost function (record so that propagator runs last)
Implements Gecode::Propagator.
Definition at line 280 of file trace-recorder.hpp.
|
virtual |
Schedule function.
Implements Gecode::Propagator.
Definition at line 286 of file trace-recorder.hpp.
|
virtual |
Give advice to propagator.
Reimplemented from Gecode::Propagator.
Definition at line 292 of file trace-recorder.hpp.
|
virtual |
Perform propagation.
Implements Gecode::Propagator.
Definition at line 307 of file trace-recorder.hpp.
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 267 of file trace-recorder.hpp.
|
inlinestatic |
Post activity recorder propagator.
Definition at line 236 of file trace-recorder.hpp.
|
inline |
Return variable being traced at position i.
Definition at line 148 of file trace-recorder.hpp.
|
inline |
Return number of variables being traced.
Definition at line 154 of file trace-recorder.hpp.
|
inline |
Provide access to slack information.
Definition at line 159 of file trace-recorder.hpp.
|
protected |
Duplicate views (old information)
Definition at line 97 of file trace-recorder.hpp.
|
protected |
Original views (new information)
Definition at line 99 of file trace-recorder.hpp.
|
protected |
The advisor council.
Definition at line 101 of file trace-recorder.hpp.
|
protected |
The trace filter.
Definition at line 103 of file trace-recorder.hpp.
|
protected |
Which events to trace.
Definition at line 105 of file trace-recorder.hpp.
|
protected |
The actual tracer.
Definition at line 107 of file trace-recorder.hpp.
|
protected |
Slack information.
Definition at line 109 of file trace-recorder.hpp.