|
rtmlib
|
#include <event.h>
Public Types | |
| typedef T | data_t |
Public Member Functions | |
| Event () | |
| Event (const T &data, const timespan &time) | |
| const T & | getData () const |
| const timespan & | getTime () const |
| void | set (T &, timespan &) |
| void | setTime (timespan &) |
| void | setData (T &) |
| void | debug () const |
| Event< T > & | operator= (const Event< T > *event) |
| bool | operator< (const Event &event) const |
| bool | operator<= (const Event &event) const |
| bool | operator> (const Event &event) const |
| bool | operator>= (const Event &event) const |
| bool | operator== (const Event &event) const |
| bool | operator!= (const Event &event) const |
| bool | operator< (const timespan &time) const |
| bool | operator<= (const timespan &time) const |
| bool | operator> (const timespan &time) const |
| bool | operator>= (const timespan &time) const |
| bool | operator== (const timespan &time) const |
| bool | operator!= (const timespan &time) const |
Private Attributes | |
| T | data |
| timespan | time |
Friends | |
| template<typename D > | |
| bool | operator< (const timespan &time, const Event< D > &event) |
| template<typename D > | |
| bool | operator<= (const timespan &time, const Event< D > &event) |
| template<typename D > | |
| bool | operator> (const timespan &time, const Event< D > &event) |
| template<typename D > | |
| bool | operator>= (const timespan &time, const Event< D > &event) |
| template<typename D > | |
| bool | operator== (const timespan &time, const Event< D > &event) |
| template<typename D > | |
| bool | operator!= (const timespan &time, const Event< D > &event) |
Event data container that keeps a timestamp of the event.
Timestamps are parameterized.
Instantiates a new event.
Instantiates a new event, nothing is zeroed out.
Instantiates a new event with data and time parameters.
Both data and time are instantiated using copy constructors.
| data | a constant reference to the data being copied. |
| time | constant reference to the time being copied. |
| void Event< T >::debug | ( | ) | const |
Debug function
| const T & Event< T >::getData | ( | ) | const |
Gets the event current data.
| const timespan & Event< T >::getTime | ( | ) | const |
Gets the event creation time.
| bool Event< T >::operator!= | ( | const timespan & | time | ) | const |
Checks if this event is != than timespec time.
| time | a timespec as defined by time.h |
| bool Event< T >::operator< | ( | const timespan & | time | ) | const |
Checks if this event is < than timespec time.
| time | a timespec as defined by time.h |
| bool Event< T >::operator<= | ( | const timespan & | time | ) | const |
Checks if this event is <= than timespec time.
| time | a timespec as defined by time.h |
Copies the Events data pointed by event to this object.
| event | The volatile data to copy to this object. |
| bool Event< T >::operator== | ( | const timespan & | time | ) | const |
Checks if this event is == to timespec time.
| time | a timespec as defined by time.h |
| bool Event< T >::operator> | ( | const timespan & | time | ) | const |
Checks if this event is > than timespec time.
| time | a timespec as defined by time.h |
| bool Event< T >::operator>= | ( | const timespan & | time | ) | const |
Checks if this event is >= than timespec time.
| time | a timespec as defined by time.h |
| void Event< T >::set | ( | T & | d, |
| timespan & | t | ||
| ) |
Set event
| void Event< T >::setData | ( | T & | d | ) |
Set data of the event
| void Event< T >::setTime | ( | timespan & | t | ) |
Set time of the event
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
1.8.15