58 typedef std::set<albaTimeStamp>
TSet;
59 typedef std::set<albaTimeStamp>::iterator
Iterator;
122 static void Merge(
const std::vector<albaTimeStamp> &v1,
const std::vector<albaTimeStamp> &v2,std::vector<albaTimeStamp> &outv);
125 void Merge(
const std::vector<albaTimeStamp> &v);
long albaID
type for IDs inside ALBA
double albaTimeStamp
type for time varying data timestamps (not for pipelines timestamps!)
#define EXPORT_STL_VECTOR(declspec_, T_)
albaUtility - the pourpose of this class is just to groups utilities classes
class wrapping an STL "set" of albaTimeStamps providing API to query and merge.
albaID FindTimeStampIndex(albaTimeStamp t)
return index of the given timestamp.
void Remove(Iterator ts)
remove timestamp from the set
void Insert(albaTimeStamp t)
insert a timestamp in the set
albaTimeStamp GetNearestTimeStamp(albaTimeStamp t)
Return the timestamp with value clsest to t.
Iterator FindTimeStamp(albaTimeStamp t)
Return the iterator pointing to the item with value "t".
TSet & GetTSet()
return reference to inner TSet object
albaTimeStamp GetTimeStampBefore(albaTimeStamp t)
Return timestamp with value <= t.
static void Merge(const mmuTimeSet &v1, const mmuTimeSet &v2, mmuTimeSet &outv)
Merge two different time-stamps sets.
static void Merge(const std::vector< albaTimeStamp > &v1, const std::vector< albaTimeStamp > &v2, std::vector< albaTimeStamp > &outv)
Merge two different time-stamps vectors.
Iterator FindNearestTimeStamp(albaTimeStamp t)
Return the iterator pointing to the item with value "t".
const TSet & GetConstTSet() const
use this in case you have a to access the TSet of a const mmuTimeSet
void Clear()
remove all items from the internal time set
void Append(albaTimeStamp t)
insert a timestamp forcing insertion point search to start from the end of the set.
void Merge(const std::vector< albaTimeStamp > &v)
Merge a time-stamps vector into this set.
std::set< albaTimeStamp >::iterator Iterator
mmuTimeSet & operator=(const mmuTimeSet &o)
assign operator, to copy set value from another set
mmuTimeSet(const mmuTimeSet &c)
copy constructor, this makes a copy of the set
std::set< albaTimeStamp > TSet
albaTimeStamp GetByIndex(albaID idx)
Return the idx-th item of the set.
void Merge(const mmuTimeSet &v)
Merge a time-stamps set into this set.
Iterator FindTimeStampBefore(albaTimeStamp t)
Return the iterator pointing to the item with lower or equal to "t".
int GetNumberOfTimeStamps() const
return the number of time stamps
Iterator Begin()
return the first time stamp
bool operator==(const mmuTimeSet &o)
void Prepend(albaTimeStamp t)
insert a timestamp forcing insertion point search to start from the start of the set.
Iterator End()
return the last+1 time stamp
std::vector< albaTimeStamp > mmuTimeVector