simulavr  1.1.0
Dumper Class Referenceabstract

#include <traceval.h>

Inheritance diagram for Dumper:

Public Member Functions

virtual void setActiveSignals (const TraceSet &act)
 
virtual void start ()
 Called before start of tracing. More...
 
virtual void stop ()
 Called after stopping tracing. More...
 
virtual void cycle ()
 Called for each cycle before dumping the values. More...
 
virtual void markRead (const TraceValue *t)
 
virtual void markReadUnknown (const TraceValue *t)
 
virtual void markWrite (const TraceValue *t)
 
virtual void markChange (const TraceValue *t)
 
virtual ~Dumper ()
 Destructor, called for all dumpers at the very end of the run. More...
 
virtual bool enabled (const TraceValue *t) const =0
 Returns true iff tracing a particular value is enabled. More...
 

Detailed Description

Generic interface for a trace value processor

Definition at line 231 of file traceval.h.

Constructor & Destructor Documentation

◆ ~Dumper()

virtual Dumper::~Dumper ( )
inlinevirtual

Destructor, called for all dumpers at the very end of the run.

Should close files etc.

Definition at line 262 of file traceval.h.

References TraceValue::enabled().

Member Function Documentation

◆ cycle()

virtual void Dumper::cycle ( )
inlinevirtual

Called for each cycle before dumping the values.

Reimplemented in DumpVCD.

Definition at line 244 of file traceval.h.

◆ enabled()

virtual bool Dumper::enabled ( const TraceValue t) const
pure virtual

Returns true iff tracing a particular value is enabled.

FIXME: For a lot of values to trace, checking enabled() each time by doing find on a map() could be slow. Here is potential for more optimization!

Implemented in DumpVCD, and WarnUnknown.

◆ markChange()

virtual void Dumper::markChange ( const TraceValue t)
inlinevirtual

Called when the value has changed. This is mainly used for values which do not have READ/WRITE notification by checking for changes after each clock cycle. All writes changing something also appear as a change.

Reimplemented in DumpVCD.

Definition at line 258 of file traceval.h.

Referenced by TraceValue::dump().

◆ markRead()

virtual void Dumper::markRead ( const TraceValue t)
inlinevirtual

Called when a traced value has been read (as long as it supports read logging!)

Reimplemented in DumpVCD.

Definition at line 248 of file traceval.h.

Referenced by TraceValue::dump().

◆ markReadUnknown()

virtual void Dumper::markReadUnknown ( const TraceValue t)
inlinevirtual

Called for all values which are read before they have been written.

Reimplemented in WarnUnknown.

Definition at line 250 of file traceval.h.

Referenced by TraceValue::dump().

◆ markWrite()

virtual void Dumper::markWrite ( const TraceValue t)
inlinevirtual

Called when a traced value has been written (as long as it supports write logging!)

Reimplemented in DumpVCD.

Definition at line 254 of file traceval.h.

Referenced by TraceValue::dump().

◆ setActiveSignals()

virtual void Dumper::setActiveSignals ( const TraceSet act)
inlinevirtual

Called with the set of all active signals, after they've been specified.

Reimplemented in DumpVCD.

Definition at line 236 of file traceval.h.

Referenced by DumpManager::addDumper().

◆ start()

virtual void Dumper::start ( )
inlinevirtual

Called before start of tracing.

Reimplemented in DumpVCD.

Definition at line 239 of file traceval.h.

◆ stop()

virtual void Dumper::stop ( )
inlinevirtual

Called after stopping tracing.

Reimplemented in DumpVCD.

Definition at line 241 of file traceval.h.


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