ubuntu-location-service
..
An aggregating location service providing positioning and geocoding capabilities to applications.
|
Templated class that wraps a value and timestamp. More...
#include <update.h>
Public Member Functions | |
Update (const T &value=T{}, const Clock::Timestamp &when=Clock::now()) | |
Constructs a valid update with the given value and timestamp. More... | |
bool | operator== (const Update< T > &rhs) const |
operator == checks if two updates are equal. More... | |
bool | operator!= (const Update< T > &rhs) const |
operator != checks if two updates are unequal. More... | |
Public Attributes | |
T | value |
Clock::Timestamp | when = Clock::beginning_of_time() |
Templated class that wraps a value and timestamp.
T | The contained value. |
|
inline |
|
inline |
operator != checks if two updates are unequal.
[in] | rhs | The update to check against. |
Definition at line 64 of file update.h.
References com::ubuntu::location::Update< T >::value, and com::ubuntu::location::Update< T >::when.
|
inline |
operator == checks if two updates are equal.
[in] | rhs | The update to check against. |
Definition at line 54 of file update.h.
References com::ubuntu::location::Update< T >::value, and com::ubuntu::location::Update< T >::when.
T com::ubuntu::location::Update< T >::value |
The value delivered with this update.
Definition at line 70 of file update.h.
Referenced by core::dbus::Codec< com::ubuntu::location::Update< T > >::decode_argument(), core::dbus::Codec< com::ubuntu::location::Update< T > >::encode_argument(), com::ubuntu::location::Update< T >::operator!=(), com::ubuntu::location::operator<<(), and com::ubuntu::location::Update< T >::operator==().
Clock::Timestamp com::ubuntu::location::Update< T >::when = Clock::beginning_of_time() |
Time when the updated value was measured.
Definition at line 73 of file update.h.
Referenced by core::dbus::Codec< com::ubuntu::location::Update< T > >::decode_argument(), core::dbus::Codec< com::ubuntu::location::Update< T > >::encode_argument(), com::ubuntu::location::Update< T >::operator!=(), com::ubuntu::location::operator<<(), and com::ubuntu::location::Update< T >::operator==().