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

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

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

Public Member Functions

bool operator== (const VNode &other) const
 
 VNode (const DBId &currentNode)
 
 VNode (const DBId &currentNode, const ObjectFileRef &object, const DBId &previousNode)
 

Public Attributes

DBId currentNode
 FileOffset of this route node. More...
 
DBId previousNode
 FileOffset of the previous route node. More...
 
ObjectFileRef object
 The object (way/area) visited from the current route node. More...
 

Detailed Description

Minimum required data for a node in the ClosedSet.

The ClosedSet is the set of routing nodes that have been already handled.

From the VNode list from the last routing node back to the start the route is recalculated by following the previousNode chain.

Constructor & Destructor Documentation

◆ VNode() [1/2]

osmscout::RoutingService::VNode::VNode ( const DBId currentNode)
inlineexplicit

Simple constructor for searching for VNodes in the ClosedSet.

Parameters
currentNodeOffset of the node to search for

◆ VNode() [2/2]

osmscout::RoutingService::VNode::VNode ( const DBId currentNode,
const ObjectFileRef &  object,
const DBId previousNode 
)
inline

Full featured constructor

Parameters
currentNodeFileOffset of the current route node
objectType of object used to navigate to this route node
previousNodeFileOffset of the previous route node visited

Member Function Documentation

◆ operator==()

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

Equality operator

Parameters
otherOther object to compare against
Returns
True, if both objects are equal. Objects are currently equal if they have the same route node file offset.

Member Data Documentation

◆ currentNode

DBId osmscout::RoutingService::VNode::currentNode

FileOffset of this route node.

◆ object

ObjectFileRef osmscout::RoutingService::VNode::object

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

◆ previousNode

DBId osmscout::RoutingService::VNode::previousNode

FileOffset of the previous route node.


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