libosmscout  1.1.1
Public Member Functions | Public Attributes | List of all members
osmscout::RoutingService::RNode Struct Reference

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

Collaboration diagram for osmscout::RoutingService::RNode:
Collaboration graph
[legend]

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

Public Attributes

DBId id
 The file offset of the current route node. More...
 
RouteNodeRef node
 The current route node. More...
 
DBId prev
 The file offset of the previous route node. More...
 
ObjectFileRef object
 The object (way/area) visited from the current route node. More...
 
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...
 
double overallCost =0
 The overall costs (currentCost+estimateCost) More...
 
bool access =true
 Flags to signal, if we had access ("access restrictions") to this node. 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 
)
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

◆ access

bool osmscout::RoutingService::RNode::access =true

Flags to signal, if we had access ("access restrictions") to this node.

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

◆ id

DBId osmscout::RoutingService::RNode::id

The file offset of the current route node.

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


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