1 #ifndef OSMIUM_OSM_SEGMENT_HPP 2 #define OSMIUM_OSM_SEGMENT_HPP 81 swap(m_first, m_second);
88 return lhs.first() == rhs.first() && lhs.second() == rhs.second();
92 return ! (lhs == rhs);
98 template <
typename TChar,
typename TTraits>
99 inline std::basic_ostream<TChar, TTraits>& operator<<(std::basic_ostream<TChar, TTraits>& out,
const osmium::Segment& segment) {
100 return out << segment.
first() <<
"->" << segment.second();
105 #endif // OSMIUM_OSM_SEGMENT_HPP constexpr Segment(const osmium::Location &location1, const osmium::Location &location2) noexcept
Definition: segment.hpp:54
Definition: segment.hpp:47
osmium::Location m_second
Definition: segment.hpp:50
constexpr bool operator==(const Box &lhs, const Box &rhs) noexcept
Definition: box.hpp:222
constexpr osmium::Location first() const noexcept
Return first Location of Segment.
Definition: segment.hpp:68
void swap(Buffer &lhs, Buffer &rhs)
Definition: buffer.hpp:731
osmium::Location m_first
Definition: segment.hpp:49
Namespace for everything in the Osmium library.
Definition: assembler.hpp:66
Definition: location.hpp:246
Segment & operator=(const Segment &)=default
constexpr osmium::Location second() const noexcept
Return second Location of Segment.
Definition: segment.hpp:73
void swap_locations()
Definition: segment.hpp:79
bool operator!=(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:431