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

DataType ConnectingRoute. More...

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

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

Public Types

typedef std::shared_ptr< ConnectingRoutePtr
 Smart pointer on ConnectingRoute.
 
typedef std::shared_ptr< ConnectingRoute const > ConstPtr
 Smart pointer on constant ConnectingRoute.
 

Public Member Functions

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

Public Attributes

::ad::map::route::ConnectingRouteType type {::ad::map::route::ConnectingRouteType::Invalid}
 
::ad::map::route::FullRoute routeA
 
::ad::map::route::FullRoute routeB
 

Detailed Description

DataType ConnectingRoute.

A special route connecting two objects, A and B, in the map. The connection route consists of two routes. routeA is non empty, if the shorted path between A and B can be traveled by A in forward direction. routeB is non empty, if the shorted path between A and B can be traveled by B in forward direction. We have the following possibilities: 1: There exists no connecting route (according to the search length/distance restrictions ): both routeA and routeB are empty 2: A and B are driving in same direction: one is able to reach the other with driving forward, but not vice versa 2.1: If A is in front of B: routeA is empty, routeB contains the route part from B towards A 2.2: If B is in front of A: routeB is empty, routeA contains the route part from A towards B

  1. A and B driving in opposite direction: both are able to reach each other by driving forward: routeA contains the route part from A towards B and routeB the inverted route part from B towards A.
  2. A and B can reach each other directly, but their routes merge at some point: routeA contains the route part from A towards the merge point routeB contains the route part from B towards the merge point

Member Function Documentation

◆ operator!=()

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

standard comparison operator

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

◆ operator=() [1/2]

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

standard move operator

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

◆ operator=() [2/2]

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

standard assignment operator

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

◆ operator==()

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

standard comparison operator

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

Member Data Documentation

◆ routeA

::ad::map::route::FullRoute ad::map::route::ConnectingRoute::routeA

The route prefix of object A. This part of the connected route is only used by object A to travel towards B. If B is behind A, this part of the connecting route is empty.

◆ routeB

::ad::map::route::FullRoute ad::map::route::ConnectingRoute::routeB

The route prefix of object B. This part of the connected route is only used by object B to travel towards A. If A is behind B, this part of the connecting route is empty.

◆ type

The type of connecting route.


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