26#ifndef NIDAS_CORE_SORTEDSAMPLESET_H
27#define NIDAS_CORE_SORTEDSAMPLESET_H
33namespace nidas {
namespace core {
44 return x->getTimeTag() < y->getTimeTag();
65 if (x->getTimeTag() > y->getTimeTag())
return false;
66 if (x->getTimeTag() == y->getTimeTag()) {
67 if (x->getId() > y->getId())
return false;
68 if (x->getId() == y->getId())
69 return x->getDataLength() < y->getDataLength();
86 if (x->getTimeTag() > y->getTimeTag())
return false;
87 if (x->getTimeTag() == y->getTimeTag()) {
88 if (x->getId() > y->getId())
return false;
89 if (x->getId() == y->getId()) {
90 if (x->getDataLength() > y->getDataLength())
return false;
91 if (x->getDataLength() == y->getDataLength()) {
93 return ::memcmp(x->getConstVoidDataPtr(),
94 y->getConstVoidDataPtr(),x->getDataLength()) < 0;
Comparator of pointers to Samples, does the same checks as SampleHeaderComparator,...
Definition SortedSampleSet.h:80
bool operator()(const Sample *x, const Sample *y) const
Return true if x is less than y.
Definition SortedSampleSet.h:85
Interface to a data sample.
Definition Sample.h:190
std::set< const Sample *, SampleHeaderComparator > SortedSampleSet2
A set for storing samples sorted by the timetag, id and data length.
Definition SortedSampleSet.h:118
std::set< const Sample *, FullSampleComparator > SortedSampleSet3
Definition SortedSampleSet.h:120
std::multiset< const Sample *, SampleTimetagComparator > SortedSampleSet
A multiset for storing samples sorted by timetag.
Definition SortedSampleSet.h:107
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31