Libosmium  2.3.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 Segment (const Segment &)=default
 
constexpr Segment (Segment &&)=default
 
Segmentoperator= (const Segment &)=default
 
Segmentoperator= (Segment &&)=default
 
 ~Segment ()=default
 
OSMIUM_CONSTEXPR osmium::Location first () const noexcept
 Return first Location of Segment. More...
 
OSMIUM_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

constexpr osmium::Segment::Segment ( const osmium::Location location1,
const osmium::Location location2 
)
inlineexplicitnoexcept
constexpr osmium::Segment::Segment ( const Segment )
default
constexpr osmium::Segment::Segment ( Segment &&  )
default
osmium::Segment::~Segment ( )
default

Member Function Documentation

OSMIUM_CONSTEXPR osmium::Location osmium::Segment::first ( ) const
inlinenoexcept

Return first Location of Segment.

Segment& osmium::Segment::operator= ( const Segment )
default
Segment& osmium::Segment::operator= ( Segment &&  )
default
OSMIUM_CONSTEXPR osmium::Location osmium::Segment::second ( ) const
inlinenoexcept

Return second Location of Segment.

void osmium::Segment::swap_locations ( )
inlineprotected

Member Data Documentation

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

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