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

Abstraction for getting cached access to the 'nodes.dat' file. More...

#include <NodeDataFile.h>

+ Inheritance diagram for osmscout::NodeDataFile:

Public Member Functions

 NodeDataFile (size_t cacheSize)
 
- Public Member Functions inherited from osmscout::DataFile< Node >
virtual bool Close ()
 Close the index. More...
 
 DataFile (const std::string &datafile, size_t cacheSize)
 
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 (const FileOffset &offset, ValueType &entry) const
 Read one data value from the given file offset. More...
 
bool GetByOffset (IteratorIn begin, IteratorIn end, size_t size, std::vector< ValueType > &data) const
 Reads data for the given file offsets. 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...
 
virtual bool IsOpen () const
 Return true, if index is currently opened. More...
 
bool Open (const TypeConfigRef &typeConfig, const std::string &path, bool memoryMapedData)
 Open the index file. More...
 
virtual ~DataFile ()
 

Static Public Attributes

static const char * NODES_DAT ="nodes.dat"
 
static const char * NODES_IDMAP ="nodes.idmap"
 

Additional Inherited Members

- Public Types inherited from osmscout::DataFile< Node >
typedef Cache< FileOffset,
std::shared_ptr< Node > > 
ValueCache
 
typedef Cache< FileOffset,
ValueType >::CacheEntry 
ValueCacheEntry
 
typedef Cache< FileOffset,
ValueType >::CacheRef 
ValueCacheRef
 
typedef std::shared_ptr< Node > ValueType
 
- Protected Attributes inherited from osmscout::DataFile< Node >
TypeConfigRef typeConfig
 

Detailed Description

Abstraction for getting cached access to the 'nodes.dat' file.

Constructor & Destructor Documentation

osmscout::NodeDataFile::NodeDataFile ( size_t  cacheSize)

Member Data Documentation

const char * osmscout::NodeDataFile::NODES_DAT ="nodes.dat"
static
const char * osmscout::NodeDataFile::NODES_IDMAP ="nodes.idmap"
static

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