libosmscout  0.1
osmscout::RouteDescription::Node Class Reference

#include <RouteDescription.h>

Public Member Functions

void AddDescription (const char *name, const DescriptionRef &description)
 
size_t GetCurrentNodeIndex () const
 
DatabaseId GetDatabaseId () const
 
DBFileOffset GetDBFileOffset () const
 
DescriptionRef GetDescription (const char *name) const
 
const std::list< DescriptionRef > & GetDescriptions () const
 Return a list of descriptions attached to the current node. More...
 
Distance GetDistance () const
 Distance from the start of the route. More...
 
GeoCoord GetLocation () const
 Location (latitude,longitude) of the node. More...
 
const std::vector< ObjectFileRef > & GetObjects () const
 Return the objects that intersect at the current node index. More...
 
ObjectFileRef GetPathObject () const
 Return the path object that connects the current node to the next node. More...
 
size_t GetTargetNodeIndex () const
 The the index of the target node on the path that is the next node on the route. More...
 
Duration GetTime () const
 Time from the start of the route in h. More...
 
bool HasDescription (const char *name) const
 
bool HasPathObject () const
 There exists a object/path from the current node to the next node in the route. More...
 
 Node (DatabaseId database, size_t currentNodeIndex, const std::vector< ObjectFileRef > &objects, const ObjectFileRef &pathObject, size_t targetNodeIndex)
 
void SetDistance (Distance distance)
 
void SetLocation (const GeoCoord &coord)
 
void SetTime (const Timestamp::duration &duration)
 

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()

◆ GetCurrentNodeIndex()

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

◆ GetDatabaseId()

◆ GetDBFileOffset()

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

◆ GetDescription()

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

◆ GetLocation()

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

Location (latitude,longitude) of the node.

Referenced by osmscout::RouteDescriptionBuilder::Callback::BeforeNode().

◆ GetObjects()

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

◆ GetPathObject()

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

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

Referenced by osmscout::RouteDescriptionBuilder::Callback::BeforeNode().

◆ HasDescription()

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

◆ HasPathObject()

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

◆ 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 &  duration)

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