ubuntu-location-service  ..
An aggregating location service providing positioning and geocoding capabilities to applications.
com::ubuntu::location::Update< T > Struct Template Reference

Templated class that wraps a value and timestamp. More...

#include <update.h>

+ Collaboration diagram for com::ubuntu::location::Update< T >:

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

value
 
Clock::Timestamp when = Clock::beginning_of_time()
 

Detailed Description

template<typename T>
struct com::ubuntu::location::Update< T >

Templated class that wraps a value and timestamp.

Template Parameters
TThe contained value.

Definition at line 36 of file update.h.

Constructor & Destructor Documentation

template<typename T>
com::ubuntu::location::Update< T >::Update ( const T &  value = T{},
const Clock::Timestamp when = Clock::now() 
)
inline

Constructs a valid update with the given value and timestamp.

Parameters
[in]valueThe value delivered with this update.
[in]whenThe timestamp when the value was measured.

Definition at line 43 of file update.h.

References com::ubuntu::location::Clock::now(), com::ubuntu::location::Update< T >::value, and com::ubuntu::location::Update< T >::when.

+ Here is the call graph for this function:

Member Function Documentation

template<typename T>
bool com::ubuntu::location::Update< T >::operator!= ( const Update< T > &  rhs) const
inline

operator != checks if two updates are unequal.

Parameters
[in]rhsThe update to check against.
Returns
true iff this instance does not equal rhs.

Definition at line 64 of file update.h.

References com::ubuntu::location::Update< T >::value, and com::ubuntu::location::Update< T >::when.

template<typename T>
bool com::ubuntu::location::Update< T >::operator== ( const Update< T > &  rhs) const
inline

operator == checks if two updates are equal.

Parameters
[in]rhsThe update to check against.
Returns
true iff this instance equals rhs.

Definition at line 54 of file update.h.

References com::ubuntu::location::Update< T >::value, and com::ubuntu::location::Update< T >::when.

Member Data Documentation


The documentation for this struct was generated from the following file: