Libosmium
2.15.1
Fast and flexible C++ library for working with OpenStreetMap data
|
Go to the documentation of this file. 1 #ifndef OSMIUM_OSM_UNDIRECTED_SEGMENT_HPP
2 #define OSMIUM_OSM_UNDIRECTED_SEGMENT_HPP
54 if (location2 < location1) {
67 return (lhs.first() == rhs.first() && lhs.second() < rhs.second()) || lhs.first() < rhs.first();
85 template <
typename TChar,
typename TTraits>
87 return out << segment.
first() <<
"--" << segment.
second();
92 #endif // OSMIUM_OSM_UNDIRECTED_SEGMENT_HPP
Definition: segment.hpp:46
Definition: undirected_segment.hpp:48
bool operator<=(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:461
bool operator>=(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:465
constexpr osmium::Location second() const noexcept
Return second Location of Segment.
Definition: segment.hpp:64
bool operator>(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:457
void swap_locations()
Definition: segment.hpp:70
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
bool operator<(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:453
Definition: location.hpp:271
std::basic_ostream< TChar, TTraits > & operator<<(std::basic_ostream< TChar, TTraits > &out, const osmium::Box &box)
Definition: box.hpp:224
UndirectedSegment(const osmium::Location &location1, const osmium::Location &location2)
Definition: undirected_segment.hpp:52
constexpr osmium::Location first() const noexcept
Return first Location of Segment.
Definition: segment.hpp:59