|
libosmscout 0.1
|
Generic area index for lookup objects by area. More...
#include <AreaIndex.h>
Classes | |
| struct | TypeData |
Public Member Functions | |
| AreaIndex ()=default | |
| AreaIndex (AreaIndex &&)=delete | |
| AreaIndex (const AreaIndex &)=delete | |
| void | Close () |
| size_t | GetEntryCount () const |
| The number of entries this index carries; the index file holds one entry per type it indexed. | |
| size_t | GetExaminedEntryCount () const |
| The number of entries the last lookup examined (diagnostic for tests). | |
| std::string | GetFilename () const |
| bool | GetOffsets (const GeoBox &boundingBox, const TypeInfoSet &types, std::vector< FileOffset > &offsets, TypeInfoSet &loadedTypes) const |
| bool | IsOpen () const |
| bool | Open (const TypeConfigRef &typeConfig, const std::string &path, bool memoryMappedData) |
| AreaIndex & | operator= (AreaIndex &&)=delete |
| AreaIndex & | operator= (const AreaIndex &)=delete |
| virtual | ~AreaIndex () |
Protected Member Functions | |
| AreaIndex (const std::string &indexFileName) | |
| void | GetOffsets (const TypeData &typeData, const GeoBox &boundingBox, std::unordered_set< FileOffset > &offsets) const |
| virtual void | ReadTypeData (const TypeConfigRef &typeConfig, TypeData &data)=0 |
Protected Attributes | |
| FileScanner | scanner |
| Scanner instance for reading this file. | |
Generic area index for lookup objects by area.
|
explicitprotected |
|
default |
|
delete |
References AreaIndex().
|
delete |
References AreaIndex().
|
virtual |
References Close().
| void osmscout::AreaIndex::Close | ( | ) |
References osmscout::IOException::GetDescription(), osmscout::log, and scanner.
Referenced by operator=(), and ~AreaIndex().
|
inline |
The number of entries this index carries; the index file holds one entry per type it indexed.
|
inline |
The number of entries the last lookup examined (diagnostic for tests).
|
inline |
| bool osmscout::AreaIndex::GetOffsets | ( | const GeoBox & | boundingBox, |
| const TypeInfoSet & | types, | ||
| std::vector< FileOffset > & | offsets, | ||
| TypeInfoSet & | loadedTypes ) const |
|
protected |
|
inline |
References scanner.
| bool osmscout::AreaIndex::Open | ( | const TypeConfigRef & | typeConfig, |
| const std::string & | path, | ||
| bool | memoryMappedData ) |
References osmscout::AppendFileToDir(), osmscout::AreaIndex::TypeData::bitmapOffset, osmscout::AreaIndex::TypeData::boundingBox, osmscout::AreaIndex::TypeData::dataOffsetBytes, osmscout::FileScanner::FastRandom, osmscout::TileIdBox::GetBoundingBox(), osmscout::IOException::GetDescription(), osmscout::AreaIndex::TypeData::indexLevel, osmscout::log, ReadTypeData(), scanner, and osmscout::AreaIndex::TypeData::tileBox.
Referenced by operator=().
References AreaIndex(), Close(), and Open().
References AreaIndex().
|
protectedpure virtual |
Referenced by Open().
|
mutableprotected |
Scanner instance for reading this file.
Referenced by Close(), GetOffsets(), IsOpen(), and Open().