1 #ifndef OSMIUM_OSM_UNDIRECTED_SEGMENT_HPP
2 #define OSMIUM_OSM_UNDIRECTED_SEGMENT_HPP
54 if (location2 < location1) {
75 return (lhs.first() == rhs.first() && lhs.second() < rhs.second()) || lhs.first() < rhs.first();
93 template <
typename TChar,
typename TTraits>
94 inline std::basic_ostream<TChar, TTraits>& operator<<(std::basic_ostream<TChar, TTraits>& out,
const osmium::UndirectedSegment& segment) {
95 return out << segment.
first() <<
"--" << segment.second();
100 #endif // OSMIUM_OSM_UNDIRECTED_SEGMENT_HPP
~UndirectedSegment()=default
bool operator<=(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:446
Definition: segment.hpp:47
Definition: undirected_segment.hpp:48
constexpr osmium::Location first() const noexcept
Return first Location of Segment.
Definition: segment.hpp:68
bool operator<(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:438
UndirectedSegment(const osmium::Location &location1, const osmium::Location &location2)
Definition: undirected_segment.hpp:52
Namespace for everything in the Osmium library.
Definition: assembler.hpp:66
Definition: location.hpp:216
bool operator>=(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:450
bool operator>(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:442
void swap_locations()
Definition: segment.hpp:79
UndirectedSegment & operator=(const UndirectedSegment &)=default