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

#include <RouteNodeDataFile.h>

Public Member Functions

bool Close ()
 Close the index. More...
 
bool Get (Id id, RouteNodeRef &node) const
 
template<typename IteratorIn >
bool Get (IteratorIn begin, IteratorIn end, size_t size, std::vector< RouteNodeRef > &data) const
 
template<typename IteratorIn >
bool Get (IteratorIn begin, IteratorIn end, size_t, std::unordered_map< Id, RouteNodeRef > &dataMap) const
 
Pixel GetTile (const GeoCoord &coord) const
 
bool IsCovered (const GeoCoord &coord) const
 
bool IsCovered (const Pixel &tile) const
 
bool IsOpen () const
 Return true, if index is currently opened. More...
 
bool Open (const TypeConfigRef &typeConfig, const std::string &path, bool memoryMapedData)
 
 RouteNodeDataFile (const std::string &datafile, size_t cacheSize)
 

Constructor & Destructor Documentation

◆ RouteNodeDataFile()

osmscout::RouteNodeDataFile::RouteNodeDataFile ( const std::string &  datafile,
size_t  cacheSize 
)
explicit

Member Function Documentation

◆ Close()

bool osmscout::RouteNodeDataFile::Close ( )

Close the index.

Method is NOT thread-safe.

References osmscout::Log::Error(), osmscout::IOException::GetDescription(), and osmscout::log.

Referenced by osmscout::RoutingDatabase::Close().

◆ Get() [1/3]

◆ Get() [2/3]

template<typename IteratorIn >
bool osmscout::RouteNodeDataFile::Get ( IteratorIn  begin,
IteratorIn  end,
size_t  size,
std::vector< RouteNodeRef > &  data 
) const
inline

◆ Get() [3/3]

template<typename IteratorIn >
bool osmscout::RouteNodeDataFile::Get ( IteratorIn  begin,
IteratorIn  end,
size_t  ,
std::unordered_map< Id, RouteNodeRef > &  dataMap 
) const
inline

◆ GetTile()

Pixel osmscout::RouteNodeDataFile::GetTile ( const GeoCoord coord) const

◆ IsCovered() [1/2]

bool osmscout::RouteNodeDataFile::IsCovered ( const GeoCoord coord) const

References GetTile(), and IsCovered().

◆ IsCovered() [2/2]

bool osmscout::RouteNodeDataFile::IsCovered ( const Pixel tile) const

Referenced by IsCovered().

◆ IsOpen()

bool osmscout::RouteNodeDataFile::IsOpen ( ) const

Return true, if index is currently opened.

Method is NOT thread-safe.

◆ Open()


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