LogicProbeData Class Reference

#include <oscilloscopedata.h>

Inheritance diagram for LogicProbeData:

Inheritance graph
[legend]
Collaboration diagram for LogicProbeData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LogicProbeData (int id)
 ~LogicProbeData ()
void addDataPoint (LogicDataPoint data)
virtual void eraseData ()
virtual uint64_t findPos (uint64_t time) const

Protected Attributes

vector< LogicDataPoint > * m_data

Friends

class OscilloscopeView

Detailed Description

Author:
David Saxton

Definition at line 122 of file oscilloscopedata.h.


Member Function Documentation

void LogicProbeData::addDataPoint ( LogicDataPoint  data  )  [inline]

Appends the data point to the set of data.

Definition at line 131 of file oscilloscopedata.h.

References m_data.

Referenced by eraseData(), and LogicProbe::logicCallback().

void LogicProbeData::eraseData (  )  [virtual]

Erases all recorded data, and sets m_resetTime to the current simulator time.

Implements ProbeData.

Definition at line 43 of file oscilloscopedata.cpp.

References addDataPoint(), m_data, ProbeData::m_resetTime, Simulator::self(), and Simulator::time().

uint64_t LogicProbeData::findPos ( uint64_t  time  )  const [virtual]

Searches for and returns the position of the last DataPoint that was added before or at the given Simulator time. If no DataPoints were were recorded before the given time, then will return the one closest to the given time. Will return 0 if no DataPoints have been recorded yet.

Implements ProbeData.

Definition at line 61 of file oscilloscopedata.cpp.

References m_data.

Referenced by OscilloscopeView::drawLogicData().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:47 2007 for KTechLab by  doxygen 1.5.1