ad_map_access
Public Types | Public Member Functions | Public Attributes | List of all members
ad::map::route::RoadSegment Struct Reference

DataType RoadSegment. More...

#include <ad/map/route/RoadSegment.hpp>

Collaboration diagram for ad::map::route::RoadSegment:
Collaboration graph
[legend]

Public Types

typedef std::shared_ptr< RoadSegmentPtr
 Smart pointer on RoadSegment.
 
typedef std::shared_ptr< RoadSegment const > ConstPtr
 Smart pointer on constant RoadSegment.
 

Public Member Functions

 RoadSegment ()=default
 standard constructor
 
 ~RoadSegment ()=default
 standard destructor
 
 RoadSegment (const RoadSegment &other)=default
 standard copy constructor
 
 RoadSegment (RoadSegment &&other)=default
 standard move constructor
 
RoadSegmentoperator= (const RoadSegment &other)=default
 standard assignment operator More...
 
RoadSegmentoperator= (RoadSegment &&other)=default
 standard move operator More...
 
bool operator== (const RoadSegment &other) const
 standard comparison operator More...
 
bool operator!= (const RoadSegment &other) const
 standard comparison operator More...
 

Public Attributes

::ad::map::route::LaneSegmentList drivableLaneSegments
 
::ad::map::route::SegmentCounter segmentCountFromDestination {0}
 
::ad::map::point::BoundingSphere boundingSphere
 

Detailed Description

DataType RoadSegment.

Defines a segment of a road containing parallel lanes that are allowed to be used. The segment consists of an ordered list of RouteLaneInterval entries and a counter of the road segment. The RouteLaneIntervals are ordered from right most lane at index 0 up to left most lane in the sense of the route traveling direction. The counter is assigned once on route planning indicating the segment count from destination. The first segment of the initially planned route should have a segmentCountFromDestination == 'number of route segments' and the last segment a segmentCountFromDestination == 1. If the stack transports only route previews or is shortening the route while traveling along one gains information on how the route changed. In addition the road segments bounding sphere is provided.

Member Function Documentation

◆ operator!=()

bool ad::map::route::RoadSegment::operator!= ( const RoadSegment other) const
inline

standard comparison operator

Parameters
[in]otherOther RoadSegment.
Returns
true if both RoadSegment are different

◆ operator=() [1/2]

RoadSegment& ad::map::route::RoadSegment::operator= ( const RoadSegment other)
default

standard assignment operator

Parameters
[in]otherOther RoadSegment
Returns
Reference to this RoadSegment.

◆ operator=() [2/2]

RoadSegment& ad::map::route::RoadSegment::operator= ( RoadSegment &&  other)
default

standard move operator

Parameters
[in]otherOther RoadSegment
Returns
Reference to this RoadSegment.

◆ operator==()

bool ad::map::route::RoadSegment::operator== ( const RoadSegment other) const
inline

standard comparison operator

Parameters
[in]otherOther RoadSegment
Returns
true if both RoadSegment are equal

Member Data Documentation

◆ boundingSphere

::ad::map::point::BoundingSphere ad::map::route::RoadSegment::boundingSphere

Bounding sphere of the road segment


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