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

#include <RoutingService.h>

Public Member Functions

bool operator== (const VNode &other) const
 Equality operator. More...
 
 VNode (const DBId &currentNode, bool currentRestricted)
 Simple constructor for searching for VNodes in the ClosedSet. More...
 
 VNode (const DBId &currentNode, bool currentRestricted, const ObjectFileRef &object, const DBId &previousNode, bool previousRestricted)
 Full featured constructor. More...
 

Public Attributes

DBId currentNode
 FileOffset of this route node. More...
 
bool currentRestricted =false
 Current node is accessed from restricted way. More...
 
ObjectFileRef object
 The object (way/area) visited from the current route node. More...
 
DBId previousNode
 FileOffset of the previous route node. More...
 
bool previousRestricted =false
 Previous node was accessed from restricted way. 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.

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.

References currentNode, and currentRestricted.

Member Data Documentation

◆ currentNode

DBId osmscout::RoutingService::VNode::currentNode

FileOffset of this route node.

Referenced by osmscout::RoutingService::ClosedNodeHasher::operator()(), and operator==().

◆ currentRestricted

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

Current node is accessed from restricted way.

Referenced by osmscout::RoutingService::ClosedNodeHasher::operator()(), and operator==().

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