libosmscout  0.1
osmscout::RouteNode Class Reference

#include <RouteNode.h>

Classes

struct  Exclude
 
struct  ObjectData
 
struct  Path
 

Public Member Functions

uint8_t AddObject (const ObjectFileRef &object, uint16_t objectVariantIndex)
 
GeoCoord GetCoord () const
 
FileOffset GetFileOffset () const
 
Id GetId () const
 
Point GetPoint () const
 
void Initialize (FileOffset fileOffset, const Point &point)
 
void Read (const TypeConfig &typeConfig, FileScanner &scanner)
 Read data from the given FileScanner. More...
 
void Read (FileScanner &scanner)
 Read data from the given FileScanner. More...
 
void Write (FileWriter &writer) const
 Write data to the given FileWriter. More...
 

Public Attributes

std::vector< Excludeexcludes
 List of potential excludes regarding use of paths. More...
 
std::vector< ObjectDataobjects
 List of objects (ways, areas) that cross this route node. More...
 
std::vector< Pathpaths
 List of paths that can in principle be used from this node. More...
 

Static Public Attributes

static const uint8_t restrictedForBicycle = 1u << 4u
 Using this path ist restricted for bicycle. More...
 
static const uint8_t restrictedForCar = 1u << 5u
 Using this path ist restricted for car. More...
 
static const uint8_t restrictedForFoot = 1u << 3u
 Using this path ist restricted for foot. More...
 
static const uint8_t usableByBicycle = 1u << 1u
 This path can be traveled by bicycle. More...
 
static const uint8_t usableByCar = 1u << 2u
 This path can be traveled by car. More...
 
static const uint8_t usableByFoot = 1u << 0u
 This path can be traveled by foot. More...
 

Detailed Description

A route node is the representation of a node in the routing graph.

Member Function Documentation

◆ AddObject()

uint8_t osmscout::RouteNode::AddObject ( const ObjectFileRef object,
uint16_t  objectVariantIndex 
)

◆ GetCoord()

GeoCoord osmscout::RouteNode::GetCoord ( ) const
inline

◆ GetFileOffset()

FileOffset osmscout::RouteNode::GetFileOffset ( ) const
inline

◆ GetId()

Id osmscout::RouteNode::GetId ( ) const
inline

◆ GetPoint()

Point osmscout::RouteNode::GetPoint ( ) const
inline

◆ Initialize()

void osmscout::RouteNode::Initialize ( FileOffset  fileOffset,
const Point point 
)
inline

◆ Read() [1/2]

void osmscout::RouteNode::Read ( const TypeConfig typeConfig,
FileScanner scanner 
)

Read data from the given FileScanner.

Exceptions
IOException

References Read().

◆ Read() [2/2]

◆ Write()

Member Data Documentation

◆ excludes

std::vector<Exclude> osmscout::RouteNode::excludes

List of potential excludes regarding use of paths.

Referenced by Read(), and Write().

◆ objects

std::vector<ObjectData> osmscout::RouteNode::objects

List of objects (ways, areas) that cross this route node.

Referenced by AddObject(), osmscout::AbstractRoutingProfile::CanUse(), osmscout::FastestPathRoutingProfile::GetCosts(), Read(), and Write().

◆ paths

std::vector<Path> osmscout::RouteNode::paths

◆ restrictedForBicycle

const uint8_t osmscout::RouteNode::restrictedForBicycle = 1u << 4u
static

Using this path ist restricted for bicycle.

◆ restrictedForCar

const uint8_t osmscout::RouteNode::restrictedForCar = 1u << 5u
static

Using this path ist restricted for car.

◆ restrictedForFoot

const uint8_t osmscout::RouteNode::restrictedForFoot = 1u << 3u
static

Using this path ist restricted for foot.

◆ usableByBicycle

const uint8_t osmscout::RouteNode::usableByBicycle = 1u << 1u
static

This path can be traveled by bicycle.

Referenced by osmscout::AbstractRoutingProfile::SetVehicle().

◆ usableByCar

const uint8_t osmscout::RouteNode::usableByCar = 1u << 2u
static

This path can be traveled by car.

Referenced by osmscout::AbstractRoutingProfile::SetVehicle().

◆ usableByFoot

const uint8_t osmscout::RouteNode::usableByFoot = 1u << 0u
static

This path can be traveled by foot.

Referenced by osmscout::AbstractRoutingProfile::SetVehicle().


The documentation for this class was generated from the following files: