lomiri-location-service
..
An aggregating location service providing positioning and geocoding capabilities to applications.
|
Go to the documentation of this file.
18 #ifndef LOCATION_SERVICE_COM_LOMIRI_LOCATION_UPDATE_H_
19 #define LOCATION_SERVICE_COM_LOMIRI_LOCATION_UPDATE_H_
84 out <<
"Update(" << update.
value <<
", " << update.
when.time_since_epoch().count() <<
")";
92 #endif // LOCATION_SERVICE_COM_LOMIRI_LOCATION_UPDATE_H_
static Timestamp now()
Samples a timestamp from the clock.
Update(const T &value=T{}, const Clock::Timestamp &when=Clock::now())
Constructs a valid update with the given value and timestamp.
std::chrono::high_resolution_clock::time_point Timestamp
Timestamp type of the location service clock.
bool operator==(const Update< T > &rhs) const
operator == checks if two updates are equal.
std::ostream & operator<<(std::ostream &out, const Accuracy< T > &update)
bool operator!=(const Update< T > &rhs) const
operator != checks if two updates are unequal.
static Timestamp beginning_of_time()
Samples a timestamp from the clock.
Templated class that wraps a value and timestamp.