WarnUnknown Class Reference

#include <traceval.h>

Inheritance diagram for WarnUnknown:
Inheritance graph
[legend]
Collaboration diagram for WarnUnknown:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 WarnUnknown (AvrDevice *core)
void markReadUnknown (const TraceValue *t)
bool enabled (const TraceValue *t) const
 Returns true iff tracing a particular value is enabled.

Private Attributes

AvrDevicecore

Detailed Description

Very simple dumper which will simply warn on unknown read accesses on stderr.

Definition at line 258 of file traceval.h.


Constructor & Destructor Documentation

WarnUnknown::WarnUnknown ( AvrDevice core  ) 

Definition at line 350 of file traceval.cpp.


Member Function Documentation

bool WarnUnknown::enabled ( const TraceValue t  )  const [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!

Implements Dumper.

Definition at line 357 of file traceval.cpp.

void WarnUnknown::markReadUnknown ( const TraceValue t  )  [virtual]

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

Reimplemented from Dumper.

Definition at line 352 of file traceval.cpp.

References core, SystemClock::GetCurrentTime(), SystemClock::Instance(), TraceValue::name(), and AvrDevice::PC.

Here is the call graph for this function:


Member Data Documentation

Definition at line 266 of file traceval.h.

Referenced by markReadUnknown().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:53:29 2012 for Simulavr by  doxygen 1.6.3