libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::RoutingService::RNode Struct Reference

A path in the routing graph from one node to the next (expressed via the target object) with additional information as required by the A* algorithm. More...

#include <RoutingService.h>

Public Member Functions

bool operator< (const RNode &other) const
bool operator== (const RNode &other) const
 RNode ()=default
 RNode (const DBId &id, const RouteNodeRef &node, const ObjectFileRef &object)
 RNode (const DBId &id, const RouteNodeRef &node, const ObjectFileRef &object, const DBId &prev, bool prevRestricted)

Public Attributes

double currentCost =0
 The cost of the current up to the current node.
double estimateCost =0
 The estimated cost from here to the target.
Id exclude =0
DBId id
 The file offset of the current route node.
bool leaveRestricted =false
 Flag signaling that we may leave restricted area, because it was start of route.
RouteNodeRef node
 The current route node.
ObjectFileRef object
 The object (way/area) visited from the current route node.
double overallCost =0
 The overall costs (currentCost+estimateCost).
DBId prev
 The file offset of the previous route node.
bool prevRestricted =false
 previous node is restricted
bool restricted =true
 Flag to signal, if access to this node is restricted ("access restrictions").

Detailed Description

A path in the routing graph from one node to the next (expressed via the target object) with additional information as required by the A* algorithm.

Constructor & Destructor Documentation

◆ RNode() [1/3]

osmscout::RoutingService::RNode::RNode ( )
default

Referenced by operator<(), and operator==().

◆ RNode() [2/3]

osmscout::RoutingService::RNode::RNode ( const DBId & id,
const RouteNodeRef & node,
const ObjectFileRef & object )
inline

References id, node, and object.

◆ RNode() [3/3]

osmscout::RoutingService::RNode::RNode ( const DBId & id,
const RouteNodeRef & node,
const ObjectFileRef & object,
const DBId & prev,
bool prevRestricted )
inline

References id, node, object, prev, and prevRestricted.

Member Function Documentation

◆ operator<()

bool osmscout::RoutingService::RNode::operator< ( const RNode & other) const
inline

References id, and RNode().

◆ operator==()

bool osmscout::RoutingService::RNode::operator== ( const RNode & other) const
inline

References id, and RNode().

Member Data Documentation

◆ currentCost

double osmscout::RoutingService::RNode::currentCost =0

The cost of the current up to the current node.

◆ estimateCost

double osmscout::RoutingService::RNode::estimateCost =0

The estimated cost from here to the target.

◆ exclude

Id osmscout::RoutingService::RNode::exclude =0

excluded node to go, similar to route-node excludes, but used by routing service when initial bearing is restricted

◆ id

DBId osmscout::RoutingService::RNode::id

◆ leaveRestricted

bool osmscout::RoutingService::RNode::leaveRestricted =false

Flag signaling that we may leave restricted area, because it was start of route.

Flag is disabled when we leave to non-restricted way.

◆ node

RouteNodeRef osmscout::RoutingService::RNode::node

The current route node.

Referenced by RNode(), and RNode().

◆ object

ObjectFileRef osmscout::RoutingService::RNode::object

The object (way/area) visited from the current route node.

Referenced by RNode(), and RNode().

◆ overallCost

double osmscout::RoutingService::RNode::overallCost =0

The overall costs (currentCost+estimateCost).

◆ prev

DBId osmscout::RoutingService::RNode::prev

The file offset of the previous route node.

Referenced by RNode().

◆ prevRestricted

bool osmscout::RoutingService::RNode::prevRestricted =false

previous node is restricted

Referenced by RNode().

◆ restricted

bool osmscout::RoutingService::RNode::restricted =true

Flag to signal, if access to this node is restricted ("access restrictions").

Referenced by osmscout::AbstractRoutingService< RoutingState >::ResolveRNodeChainToList().


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