libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::RouteNodeDataFile Class Referencefinal

#include <RouteNodeDataFile.h>

Public Member Functions

bool Close ()
 Close the index.
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.
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::IOException::GetDescription(), and osmscout::log.

◆ Get() [1/3]

bool osmscout::RouteNodeDataFile::Get ( Id id,
RouteNodeRef & node ) const

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

bool osmscout::RouteNodeDataFile::Open ( const TypeConfigRef & typeConfig,
const std::string & path,
bool memoryMapedData )

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