|
libosmscout 1.1.1
|
#include <libosmscout/include/osmscout/io/NumericIndex.h>
Public Member Functions | |
| NumericIndex (const std::string &filename, size_t cacheSize) | |
| virtual | ~NumericIndex () |
| bool | Open (const std::string &path, bool memoryMapped) |
| bool | Close () |
| bool | IsOpen () const |
| bool | GetOffset (const N &id, FileOffset &offset) const |
| template<typename IteratorIn> | |
| bool | GetOffsets (IteratorIn begin, IteratorIn end, size_t size, std::vector< FileOffset > &offsets) const |
| void | DumpStatistics () const |
Numeric index handles an index over instance of class <T> where the index criteria is of type <N>, where <N> has a numeric nature (usually Id).
| osmscout::NumericIndex< N >::NumericIndex | ( | const std::string & | filename, |
| size_t | cacheSize ) |
|
virtual |
| bool osmscout::NumericIndex< N >::Close | ( | ) |
| void osmscout::NumericIndex< N >::DumpStatistics | ( | ) | const |
| bool osmscout::NumericIndex< N >::GetOffset | ( | const N & | id, |
| FileOffset & | offset ) const |
Return the file offset in the data file for the given object id.
This method is thread-safe.
| bool osmscout::NumericIndex< N >::GetOffsets | ( | IteratorIn | begin, |
| IteratorIn | end, | ||
| size_t | size, | ||
| std::vector< FileOffset > & | offsets ) const |
Return the file offsets in the data file for the given object ids.
This method is thread-safe.
| bool osmscout::NumericIndex< N >::IsOpen | ( | ) | const |
| bool osmscout::NumericIndex< N >::Open | ( | const std::string & | path, |
| bool | memoryMapped ) |