Simple recorder for a search tracer. More...
#include <trace-recorder.hpp>
Classes | |
class | ID |
Class for storing identifiers. More... | |
Public Member Functions | |
TraceRecorder (SearchTracer *t) | |
Initialize. More... | |
void | engine (SearchTracer::EngineType t, unsigned int n) |
Register engine. More... | |
void | worker (void) |
Register worker. More... | |
unsigned int | nid (void) |
Generate new node id. More... | |
unsigned int | wid (void) const |
Return worker id. More... | |
void | round (void) |
The workers goes to a next round (restart or next iteration in LDS) More... | |
void | skip (const SearchTracer::EdgeInfo &ei) |
The engine skips an edge. More... | |
void | node (const SearchTracer::EdgeInfo &ei, const SearchTracer::NodeInfo &ni) |
The engine creates a new node with information ei and ni. More... | |
void | done (void) |
The worker is done. More... | |
operator bool (void) const | |
Whether this is a real tracer. More... | |
Protected Attributes | |
SearchTracer & | tracer |
The actual tracer. More... | |
unsigned int | _eid |
The engine id. More... | |
unsigned int | _wid |
The worker id. More... | |
unsigned int | _nid |
The next free node id. More... | |
Simple recorder for a search tracer.
Definition at line 49 of file trace-recorder.hpp.
|
inline |
Initialize.
Definition at line 178 of file trace-recorder.hpp.
|
inline |
Register engine.
Definition at line 182 of file trace-recorder.hpp.
|
inline |
Register worker.
Definition at line 187 of file trace-recorder.hpp.
|
inline |
Generate new node id.
Definition at line 192 of file trace-recorder.hpp.
|
inline |
Return worker id.
Definition at line 197 of file trace-recorder.hpp.
|
inline |
The workers goes to a next round (restart or next iteration in LDS)
Definition at line 202 of file trace-recorder.hpp.
|
inline |
The engine skips an edge.
Definition at line 207 of file trace-recorder.hpp.
|
inline |
The engine creates a new node with information ei and ni.
Definition at line 212 of file trace-recorder.hpp.
|
inline |
The worker is done.
Definition at line 218 of file trace-recorder.hpp.
|
inline |
Whether this is a real tracer.
Definition at line 223 of file trace-recorder.hpp.
|
protected |
The actual tracer.
Definition at line 52 of file trace-recorder.hpp.
|
protected |
The engine id.
Definition at line 54 of file trace-recorder.hpp.
|
protected |
The worker id.
Definition at line 56 of file trace-recorder.hpp.
|
protected |
The next free node id.
Definition at line 58 of file trace-recorder.hpp.