libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::RoutingService::RNode Struct Reference

#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. More...
 
double estimateCost =0
 The estimated cost from here to the target. More...
 
Id exclude
 excluded node to go, similar to route-node excludes, but used by routing service when initial bearing is restricted More...
 
DBId id
 The file offset of the current route node. More...
 
bool leaveRestricted =false
 Flag signaling that we may leave restricted area, because it was start of route. More...
 
RouteNodeRef node
 The current route node. More...
 
ObjectFileRef object
 The object (way/area) visited from the current route node. More...
 
double overallCost =0
 The overall costs (currentCost+estimateCost) More...
 
DBId prev
 The file offset of the previous route node. More...
 
bool prevRestricted =false
 previous node is restricted More...
 
bool restricted =true
 Flag to signal, if access to this node is restricted ("access restrictions") More...
 

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

References id.

◆ operator==()

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

References id.

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

◆ 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")

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


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