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

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

Collaboration diagram for osmscout::RoutingService::VNode:

Public Member Functions

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

Public Attributes

DBId currentNode
 FileOffset of this route node.
bool currentRestricted =false
 Current node is accessed from restricted way.
DBId previousNode
 FileOffset of the previous route node.
bool previousRestricted =false
 Previous node was accessed from restricted way.
ObjectFileRef object
 The object (way/area) visited from the current route node.

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.

Some routing nodes may be accessed from two different ways

  • one without any access restriction (!currentRestricted) and second with restriction (currentRestricted)

Restricted way (access=destination) is a way that may be used just in case when start or target is on this way (area of ways).

Constructor & Destructor Documentation

◆ VNode() [1/2]

osmscout::RoutingService::VNode::VNode ( const DBId & currentNode,
bool currentRestricted )
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,
bool currentRestricted,
const ObjectFileRef & object,
const DBId & previousNode,
bool previousRestricted )
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.

◆ currentRestricted

bool osmscout::RoutingService::VNode::currentRestricted =false

Current node is accessed from restricted way.

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

◆ previousRestricted

bool osmscout::RoutingService::VNode::previousRestricted =false

Previous node was accessed from restricted way.


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