Libosmium  2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
osmium::Segment Class Reference

#include <segment.hpp>

Inheritance diagram for osmium::Segment:
Inheritance graph
[legend]
Collaboration diagram for osmium::Segment:
Collaboration graph
[legend]

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. More...
 
constexpr osmium::Location second () const noexcept
 Return second Location of Segment. More...
 

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()

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

Member Function Documentation

◆ first()

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

Return first Location of Segment.

◆ second()

constexpr 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: