libosmscout
0.1
|
#include <RoutingService.h>
Public Member Functions | |
bool | operator== (const VNode &other) const |
Equality operator. More... | |
VNode (const DBId ¤tNode, bool currentRestricted) | |
Simple constructor for searching for VNodes in the ClosedSet. More... | |
VNode (const DBId ¤tNode, 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... | |
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
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).
|
inlineexplicit |
Simple constructor for searching for VNodes in the ClosedSet.
currentNode | Offset of the node to search for |
|
inline |
Full featured constructor.
currentNode | FileOffset of the current route node |
object | Type of object used to navigate to this route node |
previousNode | FileOffset of the previous route node visited |
|
inline |
Equality operator.
other | Other object to compare against |
References currentNode, and currentRestricted.
DBId osmscout::RoutingService::VNode::currentNode |
FileOffset of this route node.
Referenced by osmscout::RoutingService::ClosedNodeHasher::operator()(), and operator==().
bool osmscout::RoutingService::VNode::currentRestricted =false |
Current node is accessed from restricted way.
Referenced by osmscout::RoutingService::ClosedNodeHasher::operator()(), and operator==().
ObjectFileRef osmscout::RoutingService::VNode::object |
The object (way/area) visited from the current route node.
DBId osmscout::RoutingService::VNode::previousNode |
FileOffset of the previous route node.
bool osmscout::RoutingService::VNode::previousRestricted =false |
Previous node was accessed from restricted way.