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

#include <RoutingService.h>

+ Inheritance diagram for osmscout::RoutingService:

Classes

struct  ClosedNodeHasher
 Helper class for calculating hash codes for VNode instances to make it usable in std::unordered_set. More...
 
struct  RNode
 
struct  RNodeCostCompare
 
struct  VNode
 

Public Member Functions

 RoutingService ()
 
virtual ~RoutingService ()
 

Static Public Member Functions

static std::string GetData2Filename (const std::string &filenamebase)
 
static std::string GetDataFilename (const std::string &filenamebase)
 
static std::string GetIndexFilename (const std::string &filenamebase)
 

Static Public Attributes

static const char *const DEFAULT_FILENAME_BASE = "router"
 Relative filebase name for touting data as generated by default by the importer. More...
 
static const char *const FILENAME_INTERSECTIONS_DAT = "intersections.dat"
 Relative filename of the intersection data file. More...
 
static const char *const FILENAME_INTERSECTIONS_IDX = "intersections.idx"
 Relative filename of the intersection index file. More...
 

Protected Types

using ClosedSet = std::unordered_set< VNode, ClosedNodeHasher >
 
using OpenList = std::set< RNodeRef, RNodeCostCompare >
 
using OpenListRef = std::set< RNodeRef, RNodeCostCompare >::iterator
 
using OpenMap = std::unordered_map< DBId, OpenListRef >
 
using RNodeRef = std::shared_ptr< RNode >
 

Detailed Description

Abstract algorithms for routing

Member Typedef Documentation

◆ ClosedSet

using osmscout::RoutingService::ClosedSet = std::unordered_set<VNode, ClosedNodeHasher>
protected

◆ OpenList

◆ OpenListRef

using osmscout::RoutingService::OpenListRef = std::set<RNodeRef, RNodeCostCompare>::iterator
protected

◆ OpenMap

using osmscout::RoutingService::OpenMap = std::unordered_map<DBId, OpenListRef>
protected

◆ RNodeRef

using osmscout::RoutingService::RNodeRef = std::shared_ptr<RNode>
protected

Constructor & Destructor Documentation

◆ RoutingService()

osmscout::RoutingService::RoutingService ( )

◆ ~RoutingService()

osmscout::RoutingService::~RoutingService ( )
virtual

Member Function Documentation

◆ GetData2Filename()

std::string osmscout::RoutingService::GetData2Filename ( const std::string &  filenamebase)
static

◆ GetDataFilename()

std::string osmscout::RoutingService::GetDataFilename ( const std::string &  filenamebase)
static

◆ GetIndexFilename()

std::string osmscout::RoutingService::GetIndexFilename ( const std::string &  filenamebase)
static

Member Data Documentation

◆ DEFAULT_FILENAME_BASE

const char *const osmscout::RoutingService::DEFAULT_FILENAME_BASE = "router"
static

Relative filebase name for touting data as generated by default by the importer.

Referenced by osmscout::RoutingDatabase::Open(), and osmscout::MultiDBRoutingService::Open().

◆ FILENAME_INTERSECTIONS_DAT

const char *const osmscout::RoutingService::FILENAME_INTERSECTIONS_DAT = "intersections.dat"
static

Relative filename of the intersection data file.

◆ FILENAME_INTERSECTIONS_IDX

const char *const osmscout::RoutingService::FILENAME_INTERSECTIONS_IDX = "intersections.idx"
static

Relative filename of the intersection index file.


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