libosmscout  1.1.1
Public Member Functions | List of all members
osmscout::RouteDescription::Node Class Reference

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

Public Member Functions

 Node (DatabaseId database, size_t currentNodeIndex, const std::vector< ObjectFileRef > &objects, const ObjectFileRef &pathObject, size_t targetNodeIndex)
 
size_t GetCurrentNodeIndex () const
 
const std::vector< ObjectFileRef > & GetObjects () const
 
const std::list< DescriptionRef > & GetDescriptions () const
 
bool HasPathObject () const
 
DatabaseId GetDatabaseId () const
 
DBFileOffset GetDBFileOffset () const
 
ObjectFileRef GetPathObject () const
 
size_t GetTargetNodeIndex () const
 
Distance GetDistance () const
 
Duration GetTime () const
 
GeoCoord GetLocation () const
 
bool HasDescription (const char *name) const
 
DescriptionRef GetDescription (const char *name) const
 
void SetDistance (Distance distance)
 
void SetTime (const Timestamp::duration &time)
 
void SetLocation (const GeoCoord &coord)
 
void AddDescription (const char *name, const DescriptionRef &description)
 

Constructor & Destructor Documentation

◆ Node()

osmscout::RouteDescription::Node::Node ( DatabaseId  database,
size_t  currentNodeIndex,
const std::vector< ObjectFileRef > &  objects,
const ObjectFileRef &  pathObject,
size_t  targetNodeIndex 
)

Member Function Documentation

◆ AddDescription()

void osmscout::RouteDescription::Node::AddDescription ( const char *  name,
const DescriptionRef description 
)

◆ GetCurrentNodeIndex()

size_t osmscout::RouteDescription::Node::GetCurrentNodeIndex ( ) const
inline

◆ GetDatabaseId()

DatabaseId osmscout::RouteDescription::Node::GetDatabaseId ( ) const
inline

◆ GetDBFileOffset()

DBFileOffset osmscout::RouteDescription::Node::GetDBFileOffset ( ) const
inline

◆ GetDescription()

DescriptionRef osmscout::RouteDescription::Node::GetDescription ( const char *  name) const

◆ GetDescriptions()

const std::list<DescriptionRef>& osmscout::RouteDescription::Node::GetDescriptions ( ) const
inline

Return a list of descriptions attached to the current node

◆ GetDistance()

Distance osmscout::RouteDescription::Node::GetDistance ( ) const
inline

Distance from the start of the route.

◆ GetLocation()

GeoCoord osmscout::RouteDescription::Node::GetLocation ( ) const
inline

Location (latitude,longitude) of the node

◆ GetObjects()

const std::vector<ObjectFileRef>& osmscout::RouteDescription::Node::GetObjects ( ) const
inline

Return the objects that intersect at the current node index.

◆ GetPathObject()

ObjectFileRef osmscout::RouteDescription::Node::GetPathObject ( ) const
inline

Return the path object that connects the current node to the next node.

◆ GetTargetNodeIndex()

size_t osmscout::RouteDescription::Node::GetTargetNodeIndex ( ) const
inline

The the index of the target node on the path that is the next node on the route.

◆ GetTime()

Duration osmscout::RouteDescription::Node::GetTime ( ) const
inline

Time from the start of the route in h.

◆ HasDescription()

bool osmscout::RouteDescription::Node::HasDescription ( const char *  name) const

◆ HasPathObject()

bool osmscout::RouteDescription::Node::HasPathObject ( ) const
inline

There exists a object/path from the current node to the next node in the route.

◆ SetDistance()

void osmscout::RouteDescription::Node::SetDistance ( Distance  distance)

◆ SetLocation()

void osmscout::RouteDescription::Node::SetLocation ( const GeoCoord &  coord)

◆ SetTime()

void osmscout::RouteDescription::Node::SetTime ( const Timestamp::duration &  time)

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