18 #ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_COORDINATE_H_ 19 #define LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_COORDINATE_H_ 33 template<
typename Coordinate>
41 template<
typename Tag,
typename UnitType>
56 return value == rhs.
value;
61 return value != rhs.
value;
67 template<
typename T,
typename U>
73 template<
typename T,
typename U>
74 std::ostream& operator<<(std::ostream& out, const Coordinate<T,U>& coord)
76 out <<
"Coordinate(" << coord.value <<
")";
83 #endif // LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_COORDINATE_H_ units::Quantity< Unit > Quantity
static void check_and_throw_if_invalid(const typename Coordinate::Quantity &coordinate)
boost::units::quantity< Unit, double > Quantity
bool operator==(const Coordinate< Tag, UnitType > &rhs) const
Coordinate< T, U > operator-(const Coordinate< T, U > &lhs, const Coordinate< T, U > &rhs)
bool operator!=(const Coordinate< Tag, UnitType > &rhs) const
Coordinate(const Quantity &value=Quantity())