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

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

#include <update.h>

+ Collaboration diagram for com::lomiri::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.
 
bool operator== (const Update< T > &rhs) const
 operator == checks if two updates are equal.
 
bool operator!= (const Update< T > &rhs) const
 operator != checks if two updates are unequal.
 

Public Attributes

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

Detailed Description

template<typename T>
struct com::lomiri::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

◆ Update()

template<typename T >
com::lomiri::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.

Member Function Documentation

◆ operator!=()

template<typename T >
bool com::lomiri::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::lomiri::location::Update< T >::value, and com::lomiri::location::Update< T >::when.

◆ operator==()

template<typename T >
bool com::lomiri::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::lomiri::location::Update< T >::value, and com::lomiri::location::Update< T >::when.

Member Data Documentation

◆ value

◆ when


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