| ALBA
    | 
#include <mmuTimeSet.h>


| Public Types | |
| typedef std::set< albaTimeStamp > | TSet | 
| typedef std::set< albaTimeStamp >::iterator | Iterator | 
| Public Member Functions | |
| mmuTimeSet () | |
| virtual | ~mmuTimeSet () | 
| mmuTimeSet (const mmuTimeSet &c) | |
| mmuTimeSet & | operator= (const mmuTimeSet &o) | 
| bool | operator== (const mmuTimeSet &o) | 
| void | Insert (albaTimeStamp t) | 
| void | Append (albaTimeStamp t) | 
| void | Prepend (albaTimeStamp t) | 
| void | Remove (Iterator ts) | 
| void | Clear () | 
| TSet & | GetTSet () | 
| const TSet & | GetConstTSet () const | 
| albaTimeStamp | GetByIndex (albaID idx) | 
| albaTimeStamp | GetNearestTimeStamp (albaTimeStamp t) | 
| albaTimeStamp | GetTimeStampBefore (albaTimeStamp t) | 
| albaID | FindTimeStampIndex (albaTimeStamp t) | 
| Iterator | FindTimeStamp (albaTimeStamp t) | 
| Iterator | FindNearestTimeStamp (albaTimeStamp t) | 
| Iterator | FindTimeStampBefore (albaTimeStamp t) | 
| void | Merge (const mmuTimeSet &v) | 
| void | Merge (const std::vector< albaTimeStamp > &v) | 
| int | GetNumberOfTimeStamps () const | 
| Iterator | Begin () | 
| Iterator | End () | 
| Static Public Member Functions | |
| static void | Merge (const mmuTimeSet &v1, const mmuTimeSet &v2, mmuTimeSet &outv) | 
| static void | Merge (const std::vector< albaTimeStamp > &v1, const std::vector< albaTimeStamp > &v2, std::vector< albaTimeStamp > &outv) | 
| Protected Attributes | |
| TSet | m_TSet | 
class wrapping an STL "set" of albaTimeStamps providing API to query and merge.
Definition at line 42 of file mmuTimeSet.h.
| typedef std::set<albaTimeStamp> mmuTimeSet::TSet | 
Definition at line 58 of file mmuTimeSet.h.
| typedef std::set<albaTimeStamp>::iterator mmuTimeSet::Iterator | 
Definition at line 59 of file mmuTimeSet.h.
| mmuTimeSet::mmuTimeSet | ( | ) | 
| 
 | virtual | 
| mmuTimeSet::mmuTimeSet | ( | const mmuTimeSet & | c | ) | 
copy constructor, this makes a copy of the set
| mmuTimeSet & mmuTimeSet::operator= | ( | const mmuTimeSet & | o | ) | 
assign operator, to copy set value from another set
| bool mmuTimeSet::operator== | ( | const mmuTimeSet & | o | ) | 
| void mmuTimeSet::Insert | ( | albaTimeStamp | t | ) | 
insert a timestamp in the set
| void mmuTimeSet::Append | ( | albaTimeStamp | t | ) | 
insert a timestamp forcing insertion point search to start from the end of the set.
In case times are inserted already ordered this ensures a constant time for insertion
| void mmuTimeSet::Prepend | ( | albaTimeStamp | t | ) | 
insert a timestamp forcing insertion point search to start from the start of the set.
In case times are inserted already ordered this ensures a constant time for insertion
| void mmuTimeSet::Remove | ( | Iterator | ts | ) | 
remove timestamp from the set
| 
 | inline | 
remove all items from the internal time set
Definition at line 80 of file mmuTimeSet.h.
| 
 | inline | 
return reference to inner TSet object
Definition at line 83 of file mmuTimeSet.h.
| 
 | inline | 
use this in case you have a to access the TSet of a const mmuTimeSet
Definition at line 86 of file mmuTimeSet.h.
| albaTimeStamp mmuTimeSet::GetByIndex | ( | albaID | idx | ) | 
Return the idx-th item of the set.
return -1 if not found.
| albaTimeStamp mmuTimeSet::GetNearestTimeStamp | ( | albaTimeStamp | t | ) | 
Return the timestamp with value clsest to t.
| albaTimeStamp mmuTimeSet::GetTimeStampBefore | ( | albaTimeStamp | t | ) | 
Return timestamp with value <= t.
| albaID mmuTimeSet::FindTimeStampIndex | ( | albaTimeStamp | t | ) | 
return index of the given timestamp.
return -1 if not found.
| Iterator mmuTimeSet::FindTimeStamp | ( | albaTimeStamp | t | ) | 
Return the iterator pointing to the item with value "t".
Return TSet::end() if not found.
| Iterator mmuTimeSet::FindNearestTimeStamp | ( | albaTimeStamp | t | ) | 
Return the iterator pointing to the item with value "t".
Return TSet::end() if none found.
| Iterator mmuTimeSet::FindTimeStampBefore | ( | albaTimeStamp | t | ) | 
Return the iterator pointing to the item with lower or equal to "t".
Return TSet::end() if none found.
| 
 | static | 
Merge two different time-stamps sets.
| void mmuTimeSet::Merge | ( | const mmuTimeSet & | v | ) | 
Merge a time-stamps set into this set.
| 
 | static | 
Merge two different time-stamps vectors.
| void mmuTimeSet::Merge | ( | const std::vector< albaTimeStamp > & | v | ) | 
Merge a time-stamps vector into this set.
| int mmuTimeSet::GetNumberOfTimeStamps | ( | ) | const | 
return the number of time stamps
| 
 | inline | 
return the first time stamp
Definition at line 131 of file mmuTimeSet.h.
| 
 | inline | 
return the last+1 time stamp
Definition at line 133 of file mmuTimeSet.h.
| 
 | protected | 
Definition at line 137 of file mmuTimeSet.h.