libosmscout
0.1
|
#include <PTRouteDataFile.h>
Public Member Functions | |
PTRouteDataFile & | operator= (const PTRouteDataFile &)=delete |
PTRouteDataFile & | operator= (PTRouteDataFile &&)=delete |
PTRouteDataFile (const PTRouteDataFile &)=delete | |
PTRouteDataFile (PTRouteDataFile &&)=delete | |
PTRouteDataFile (size_t cacheSize) | |
~PTRouteDataFile () override=default | |
![]() | |
virtual bool | Close () |
Close the index. More... | |
DataFile (const DataFile &)=delete | |
DataFile (const std::string &datafile, size_t cacheSize) | |
DataFile (DataFile &&)=delete | |
void | FlushCache () |
bool | GetByBlockSpan (const DataBlockSpan &span, std::vector< ValueType > &data) const |
Read data values from the given DataBlockSpan. More... | |
bool | GetByBlockSpans (IteratorIn begin, IteratorIn end, std::vector< ValueType > &data) const |
Read data values from the given DataBlockSpans. More... | |
bool | GetByOffset (FileOffset offset, ValueType &entry) const |
Read one data value from the given file offset. More... | |
bool | GetByOffset (IteratorIn begin, IteratorIn end, size_t size, const GeoBox &boundingBox, std::vector< ValueType > &data) const |
Read data values from the given file offsets. More... | |
bool | GetByOffset (IteratorIn begin, IteratorIn end, size_t size, std::unordered_map< FileOffset, ValueType > &dataMap) const |
Read data values from the given file offsets. More... | |
bool | GetByOffset (IteratorIn begin, IteratorIn end, size_t size, std::vector< ValueType > &data) const |
Reads data for the given file offsets. More... | |
std::string | GetFilename () const |
virtual bool | IsOpen () const |
Return true, if index is currently opened. More... | |
bool | Open (const TypeConfigRef &typeConfig, const std::string &path, bool memoryMappedData) |
Open the index file. More... | |
DataFile & | operator= (const DataFile &)=delete |
DataFile & | operator= (DataFile &&)=delete |
virtual | ~DataFile () |
Static Public Attributes | |
static const char *const | PTROUTES_DAT ="ptroutes.dat" |
Additional Inherited Members | |
![]() | |
using | ValueCache = Cache< FileOffset, std::shared_ptr< PTRoute > > |
using | ValueCacheEntry = typename Cache< FileOffset, ValueType >::CacheEntry |
using | ValueCacheRef = typename Cache< FileOffset, ValueType >::CacheRef |
using | ValueType = std::shared_ptr< PTRoute > |
![]() | |
TypeConfigRef | typeConfig |
Abstraction for getting cached access to the 'ptroute.dat' file.
|
explicit |
|
delete |
|
delete |
|
overridedefault |
|
delete |
|
delete |
|
static |