Libosmium
Fast and flexible C++ library for working with OpenStreetMap data
Loading...
Searching...
No Matches
osmium::Segment Class Reference

#include <segment.hpp>

Inheritance diagram for osmium::Segment:
Collaboration diagram for osmium::Segment:

Public Member Functions

constexpr Segment (const osmium::Location &location1, const osmium::Location &location2) noexcept
constexpr osmium::Location first () const noexcept
 Return first Location of Segment.
constexpr osmium::Location second () const noexcept
 Return second Location of Segment.

Protected Member Functions

void swap_locations ()

Private Attributes

osmium::Location m_first
osmium::Location m_second

Detailed Description

A Segment is the directed connection between two Locations.

Constructor & Destructor Documentation

◆ Segment()

osmium::Segment::Segment ( const osmium::Location & location1,
const osmium::Location & location2 )
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ first()

osmium::Location osmium::Segment::first ( ) const
inlineconstexprnoexcept

Return first Location of Segment.

◆ second()

osmium::Location osmium::Segment::second ( ) const
inlineconstexprnoexcept

Return second Location of Segment.

◆ swap_locations()

void osmium::Segment::swap_locations ( )
inlineprotected

Member Data Documentation

◆ m_first

osmium::Location osmium::Segment::m_first
private

◆ m_second

osmium::Location osmium::Segment::m_second
private

The documentation for this class was generated from the following file: