#include <oscilloscopedata.h>
Inheritance diagram for LogicProbeData:


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 |
Definition at line 122 of file oscilloscopedata.h.
| 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().
1.5.1