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

#include <libosmscout/include/osmscout/routing/RoutingService.h>

Collaboration diagram for osmscout::RoutingService::RNode:

Public Member Functions

 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)
bool operator== (const RNode &other) const
bool operator< (const RNode &other) const

Public Attributes

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

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

◆ RNode() [2/3]

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

◆ RNode() [3/3]

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

Member Function Documentation

◆ operator<()

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

◆ operator==()

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

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

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

The file offset of the current route node.

◆ 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.

◆ object

ObjectFileRef osmscout::RoutingService::RNode::object

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

◆ 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.

◆ prevRestricted

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

previous node is restricted

◆ restricted

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

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


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