libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::DataBlockSpan Struct Reference

Reference a range of data entries by giving the offset of the first entry in the file and the number of data elements. More...

#include <DataFile.h>

Public Member Functions

bool operator!= (const DataBlockSpan &other) const
 
bool operator< (const DataBlockSpan &other) const
 
bool operator== (const DataBlockSpan &other) const
 

Public Attributes

uint32_t count
 Number of entries to read.
 
FileOffset startOffset
 Offset for the first data entry referenced in the file. Data will be read starting from this position.
 

Detailed Description

Reference a range of data entries by giving the offset of the first entry in the file and the number of data elements.

Member Function Documentation

◆ operator!=()

bool osmscout::DataBlockSpan::operator!= ( const DataBlockSpan other) const
inline

References count, and startOffset.

◆ operator<()

bool osmscout::DataBlockSpan::operator< ( const DataBlockSpan other) const
inline

References startOffset.

◆ operator==()

bool osmscout::DataBlockSpan::operator== ( const DataBlockSpan other) const
inline

References count, and startOffset.

Member Data Documentation

◆ count

uint32_t osmscout::DataBlockSpan::count

Number of entries to read.

Referenced by osmscout::DataFile< N >::GetByBlockSpan(), operator!=(), and operator==().

◆ startOffset

FileOffset osmscout::DataBlockSpan::startOffset

Offset for the first data entry referenced in the file. Data will be read starting from this position.

Referenced by osmscout::DataFile< N >::GetByBlockSpan(), operator!=(), operator<(), and operator==().


The documentation for this struct was generated from the following file: