Propagator for recording trace information. More...
#include <recorder.hpp>
Public Member Functions | |
TraceRecorder (Space &home, TraceRecorder &p) | |
Constructor for cloning p. | |
TraceRecorder (Home home, TraceFilter tf, int te, Tracer &t) | |
Constructor for creation. | |
virtual Propagator * | copy (Space &home) |
Copy propagator during cloning. | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (record so that propagator runs last) | |
virtual void | reschedule (Space &home) |
Schedule function. | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
![]() | |
ModEventDelta | modeventdelta (void) const |
Return the modification event delta. | |
virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
Advise function. | |
virtual void | advise (Space &home, Advisor &a) |
Run advisor a to be run on failure in failed space. | |
double | afc (void) const |
Return the accumlated failure count. | |
unsigned int | id (void) const |
Return propagator id. | |
PropagatorGroup | group (void) const |
Return group propagator belongs to. | |
void | group (PropagatorGroup g) |
Add propagator to group g. | |
bool | disabled (void) const |
Whether propagator is currently disabled. | |
![]() | |
virtual | ~Actor (void) |
To avoid warnings. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, TraceFilter tf, int te, Tracer &t) |
Post propagator. | |
![]() | |
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. | |
static void * | operator new (size_t s) |
Not used. | |
static void | operator delete (void *p) |
Not used. | |
Public Attributes | |
TraceFilter | tf |
The trace filter. | |
int | te |
Which events to trace. | |
Tracer & | t |
The actual tracer. | |
![]() |
Trace information | |
const TraceFilter & | filter (void) const |
Return trace filter. | |
int | events (void) const |
Which events to trace. | |
Tracer & | tracer (void) const |
Return tracer. | |
Additional Inherited Members | |
![]() | |
Propagator (Home home) | |
Constructor for posting. | |
Propagator (Space &home, Propagator &p) | |
Constructor for cloning p. | |
Propagator * | fwd (void) const |
Return forwarding pointer during copying. | |
Kernel::GPI::Info & | gpi (void) |
Provide access to global propagator information. | |
Propagator for recording trace information.
This propagator is actually never run. It only provides access to information needed for tracing.
Definition at line 154 of file recorder.hpp.
|
inline |
Constructor for cloning p.
Definition at line 416 of file recorder.hpp.
|
inline |
Constructor for creation.
Definition at line 401 of file recorder.hpp.
|
virtual |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 39 of file recorder.cpp.
|
virtual |
Cost function (record so that propagator runs last)
Implements Gecode::Propagator.
Definition at line 53 of file recorder.cpp.
|
virtual |
|
virtual |
|
virtual |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 44 of file recorder.cpp.
|
inlinestatic |
Post propagator.
Definition at line 409 of file recorder.hpp.
|
inline |
Return trace filter.
Definition at line 383 of file recorder.hpp.
|
inline |
Which events to trace.
Definition at line 387 of file recorder.hpp.
|
inline |
Return tracer.
Definition at line 391 of file recorder.hpp.
TraceFilter Gecode::TraceRecorder::tf |
The trace filter.
Definition at line 157 of file recorder.hpp.
int Gecode::TraceRecorder::te |
Which events to trace.
Definition at line 159 of file recorder.hpp.
Tracer& Gecode::TraceRecorder::t |
The actual tracer.
Definition at line 161 of file recorder.hpp.