Generated on Tue Jan 28 2020 00:00:00 for Gecode by doxygen 1.8.17

Propagator for recording trace information. More...

#include <trace-recorder.hpp>

Public Member Functions

 TraceRecorder (Space &home, bool share, TraceRecorder &p)
 Constructor for cloning p. More...
 
 TraceRecorder (Home home, TraceFilter tf, int te, Tracer &t)
 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 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...
 
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Advise function. More...
 
virtual void advise (Space &home, Advisor &a)
 Run advisor a to be run on failure in failed space. More...
 
double afc (void) 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...
 
- Public Member Functions inherited from Gecode::Actor
virtual ~Actor (void)
 To avoid warnings. More...
 

Static Public Member Functions

static ExecStatus post (Home home, TraceFilter tf, int te, Tracer &t)
 Post 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...
 
static void * operator new (size_t s)
 Not used. More...
 
static void operator delete (void *p)
 Not used. More...
 

Public Attributes

TraceFilter tf
 The trace filter. More...
 
int te
 Which events to trace. More...
 
Tracert
 The actual tracer. More...
 

Trace information

const TraceFilterfilter (void) const
 Return trace filter. More...
 
int events (void) const
 Which events to trace. More...
 
Tracertracer (void) const
 Return tracer. More...
 

Additional Inherited Members

- 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...
 

Detailed Description

Propagator for recording trace information.

This propagator is actually never run. It only provides access to information needed for tracing.

Definition at line 157 of file trace-recorder.hpp.

Constructor & Destructor Documentation

◆ TraceRecorder() [1/2]

Gecode::TraceRecorder::TraceRecorder ( Space home,
bool  share,
TraceRecorder p 
)
inline

Constructor for cloning p.

Definition at line 421 of file trace-recorder.hpp.

◆ TraceRecorder() [2/2]

Gecode::TraceRecorder::TraceRecorder ( Home  home,
TraceFilter  tf,
int  te,
Tracer t 
)
inline

Constructor for creation.

Definition at line 406 of file trace-recorder.hpp.

Member Function Documentation

◆ copy()

Propagator * Gecode::TraceRecorder::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 43 of file trace-recorder.cpp.

◆ cost()

PropCost Gecode::TraceRecorder::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function (record so that propagator runs last)

Implements Gecode::Propagator.

Definition at line 57 of file trace-recorder.cpp.

◆ reschedule()

void Gecode::TraceRecorder::reschedule ( Space home)
virtual

Schedule function.

Implements Gecode::Propagator.

Definition at line 62 of file trace-recorder.cpp.

◆ propagate()

ExecStatus Gecode::TraceRecorder::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 66 of file trace-recorder.cpp.

◆ dispose()

size_t Gecode::TraceRecorder::dispose ( Space home)
virtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 48 of file trace-recorder.cpp.

◆ post()

ExecStatus Gecode::TraceRecorder::post ( Home  home,
TraceFilter  tf,
int  te,
Tracer t 
)
inlinestatic

Post propagator.

Definition at line 414 of file trace-recorder.hpp.

◆ filter()

const TraceFilter & Gecode::TraceRecorder::filter ( void  ) const
inline

Return trace filter.

Definition at line 388 of file trace-recorder.hpp.

◆ events()

int Gecode::TraceRecorder::events ( void  ) const
inline

Which events to trace.

Definition at line 392 of file trace-recorder.hpp.

◆ tracer()

Tracer & Gecode::TraceRecorder::tracer ( void  ) const
inline

Return tracer.

Definition at line 396 of file trace-recorder.hpp.

Member Data Documentation

◆ tf

TraceFilter Gecode::TraceRecorder::tf

The trace filter.

Definition at line 160 of file trace-recorder.hpp.

◆ te

int Gecode::TraceRecorder::te

Which events to trace.

Definition at line 162 of file trace-recorder.hpp.

◆ t

Tracer& Gecode::TraceRecorder::t

The actual tracer.

Definition at line 164 of file trace-recorder.hpp.


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