9 #ifndef lgrDataViewSet_H_
10 #define lgrDataViewSet_H_
18 #include <vlutil/vlSmartPointers.h>
19 #include <vlutil/vlString.h>
24 class DtMessageIOInfo;
41 DataPoint() : myTime(-1.0), myType(255), mySize(0) {}
42 DataPoint(
unsigned char typeValue,
double timeValue,
unsigned short sizeValue)
43 : myTime(timeValue), myType(typeValue), mySize(sizeValue) {}
45 : myTime(other.myTime), myType(other.myType), mySize(other.mySize) {}
50 {
if (&other ==
this)
return *
this; myTime = other.
myTime; myType = other.
myType; mySize = other.
mySize;
return *
this;}
51 void setTime(
double value) {myTime = value;}
52 double time()
const {
return myTime;}
54 void setSize(
short value) {mySize = value;}
55 unsigned short size()
const {
return mySize;}
56 void setType(
char value) {myType = value;}
57 unsigned char type()
const {
return myType;}
78 virtual
void addPacketData(const
DtPacket& packet);
87 virtual
int classifyPacketType(const
DtPacket& packet) const;
95 virtual DtString interactionName(const
DtPacket& packet) const;
114 static SpikeLane spikeLane(
int classifiedType);
120 SpikeLane spikeLaneForPacket(
const DtPacket& packet)
const;
141 virtual size_t changedByteCount(
const DtPacket& packet)
const;
150 virtual DtString changedAttributeSummary(
const DtPacket& packet)
const;
156 virtual DtString packetTypeName(
const DtPacket& packet)
const;
160 virtual int packetTypeCode(
const DtPacket& packet)
const;
165 virtual bool objectLabelIsEntityType()
const;
168 virtual void addDataPoint(
double time,
unsigned char type,
unsigned short size);
171 virtual void addDataPoint(DataPoint
const& point);
178 virtual void clearAllBeforeTime(
double time);
181 virtual void clearSet();
184 DataPointSet::const_iterator begin()
const;
187 DataPointSet::const_iterator end()
const;
190 DataPoint
const& first()
const;
193 bool getFirst(DataPoint& firstPoint)
const;
196 DataPoint
const& last()
const;
199 bool getLast(DataPoint& last)
const;
206 virtual size_t fillSetFromTime(
DtLgrDataViewSet& dataSet,
double startTime,
double endTime);
210 virtual size_t fillSetFromIndex(
DtLgrDataViewSet& dataSet,
size_t startIndex,
double endTime);
215 virtual void indexPacketTime(
size_t index,
unsigned long packetTime);
DataPointIndexMap myTimeIndexMap
Index into data points by time.
Definition: lgrDataViewSet.h:228
SpikeLane
Histogram lane a packet contributes to in the Packet Count View.
Definition: lgrDataViewSet.h:98
unsigned short mySize
Definition: lgrDataViewSet.h:61
void setType(char value)
Definition: lgrDataViewSet.h:56
DataPoint(unsigned char typeValue, double timeValue, unsigned short sizeValue)
Definition: lgrDataViewSet.h:42
void setSize(short value)
Definition: lgrDataViewSet.h:54
unsigned long getWholeTime() const
Definition: lgrDataViewSet.h:53
virtual ~DataPoint()
Definition: lgrDataViewSet.h:46
#define DT_VIRTUAL_CTR(CLASS_NAME, ARG_TYPES_LIST)
Declare a Virtual Constructor Create using DT_VIRTUAL_CTR(CLASS_NAME,ARG_TYPES_LIST) Where CLASS_NAME...
Definition: virtualConstructor.h:34
DataPoint myInvalidPoint
An invalid data point.
Definition: lgrDataViewSet.h:226
unsigned char myType
Definition: lgrDataViewSet.h:62
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
unsigned char type() const
Definition: lgrDataViewSet.h:57
std::map< unsigned long, size_t > DataPointIndexMap
Definition: lgrDataViewSet.h:66
std::deque< DataPoint > DataPointSet
Definition: lgrDataViewSet.h:65
std::shared_ptr< DtLgrDataViewSet > DtLgrDataViewSetSP
Definition: lgrDataViewSet.h:27
double myTime
Definition: lgrDataViewSet.h:60
A message IO info object stores information about a specific message input or output stage...
Definition: messageIoInfo.h:21
unsigned short size() const
Definition: lgrDataViewSet.h:55
void setTime(double value)
Definition: lgrDataViewSet.h:51
A generic packed of typed binary data.
Definition: packet.h:41
DataPoint & operator=(const DataPoint &other)
Definition: lgrDataViewSet.h:49
double time() const
Definition: lgrDataViewSet.h:52
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
Data for a single data point.
Definition: lgrDataViewSet.h:38
DataPoint(const DataPoint &other)
Definition: lgrDataViewSet.h:44
DataPoint()
Definition: lgrDataViewSet.h:41
Collection of data values sorted by time used for data views.
Definition: lgrDataViewSet.h:33
DataPointSet myPoints
The set of data points.
Definition: lgrDataViewSet.h:224
Contains lgrCore library definitions.