WSF
WsfRouteNetwork::RouteCostFunc Class Reference

A cost function used by the shortest_path algorithm provided by the RouteGraph class. More...

#include <WsfRouteNetwork.hpp>

Inherits RouteGraph::cost_func.

Collaboration diagram for WsfRouteNetwork::RouteCostFunc:

Public Member Functions

 RouteCostFunc ()
 RouteCostFunc (WsfRouteNetwork *aNetworkPtr)
double operator() (const RouteEdge &aEdge, const RouteNode &, const RouteNode &) const override
 Returns the precomputed cost along the edge.
double operator() (const RouteNode &aNode1, const RouteNode &aNode2) const override
 Computes a lower-bound cost to move from aNode1 to aNode2 (a straight (curved) line).

Public Attributes

WsfRouteNetworkmNetworkPtr

Detailed Description

A cost function used by the shortest_path algorithm provided by the RouteGraph class.

Constructor & Destructor Documentation

◆ RouteCostFunc() [1/2]

WsfRouteNetwork::RouteCostFunc::RouteCostFunc ( )
inline

References mNetworkPtr.

◆ RouteCostFunc() [2/2]

WsfRouteNetwork::RouteCostFunc::RouteCostFunc ( WsfRouteNetwork * aNetworkPtr)
inline

Member Function Documentation

◆ operator()() [1/2]

double WsfRouteNetwork::RouteCostFunc::operator() ( const RouteEdge & aEdge,
const RouteNode & ,
const RouteNode &  ) const
inlineoverride

Returns the precomputed cost along the edge.

References WsfRouteNetwork::RouteEdge::mDistance.

◆ operator()() [2/2]

double WsfRouteNetwork::RouteCostFunc::operator() ( const RouteNode & aNode1,
const RouteNode & aNode2 ) const
inlineoverride

Computes a lower-bound cost to move from aNode1 to aNode2 (a straight (curved) line).

References WsfWaypoint::GetLat(), WsfWaypoint::GetLon(), and WsfRouteNetwork::RouteNode::mWaypoints.

Member Data Documentation

◆ mNetworkPtr

WsfRouteNetwork* WsfRouteNetwork::RouteCostFunc::mNetworkPtr

Referenced by RouteCostFunc(), and RouteCostFunc().


The documentation for this class was generated from the following file:
Copyrights Multiple, All Rights Reserved