libosmscout  0.1
osmscout::ObjectFileRef Class Referencefinal

Reference to an libosmscout internal object by its type (area, way, node) and by its file offset within its data file. More...

#include <ObjectRef.h>

Public Member Functions

const FileOffsetGetFileOffset () const
 
std::string GetName () const
 
const RefTypeGetType () const
 
const char * GetTypeName () const
 
bool Invalid () const
 
void Invalidate ()
 
bool IsArea () const
 
bool IsNode () const
 
bool IsWay () const
 
 ObjectFileRef ()=default
 
 ObjectFileRef (const ObjectFileRef &ref)=default
 
 ObjectFileRef (FileOffset offset, RefType type)
 
 ObjectFileRef (ObjectFileRef &&ref)=default
 
bool operator!= (const ObjectFileRef &reference) const
 
bool operator< (const ObjectFileRef &reference) const
 
ObjectFileRefoperator= (const ObjectFileRef &other)=default
 
ObjectFileRefoperator= (ObjectFileRef &&other)=default
 
bool operator== (const ObjectFileRef &reference) const
 
void Set (const FileOffset &offset, const RefType &type)
 
bool Valid () const
 
 ~ObjectFileRef ()=default
 

Public Attributes

FileOffset offset =0
 
RefType type =refNone
 

Detailed Description

Reference to an libosmscout internal object by its type (area, way, node) and by its file offset within its data file.

Constructor & Destructor Documentation

◆ ObjectFileRef() [1/4]

osmscout::ObjectFileRef::ObjectFileRef ( )
default

◆ ObjectFileRef() [2/4]

osmscout::ObjectFileRef::ObjectFileRef ( const ObjectFileRef ref)
default

◆ ObjectFileRef() [3/4]

osmscout::ObjectFileRef::ObjectFileRef ( ObjectFileRef &&  ref)
default

◆ ObjectFileRef() [4/4]

osmscout::ObjectFileRef::ObjectFileRef ( FileOffset  offset,
RefType  type 
)
inline

◆ ~ObjectFileRef()

osmscout::ObjectFileRef::~ObjectFileRef ( )
default

Member Function Documentation

◆ GetFileOffset()

◆ GetName()

◆ GetType()

◆ GetTypeName()

◆ Invalid()

bool osmscout::ObjectFileRef::Invalid ( ) const
inline

References osmscout::refNone.

◆ Invalidate()

void osmscout::ObjectFileRef::Invalidate ( )
inline

References osmscout::refNone.

◆ IsArea()

bool osmscout::ObjectFileRef::IsArea ( ) const
inline

References osmscout::refArea.

◆ IsNode()

bool osmscout::ObjectFileRef::IsNode ( ) const
inline

References osmscout::refNode.

◆ IsWay()

bool osmscout::ObjectFileRef::IsWay ( ) const
inline

◆ operator!=()

bool osmscout::ObjectFileRef::operator!= ( const ObjectFileRef reference) const
inline

References offset, and type.

◆ operator<()

bool osmscout::ObjectFileRef::operator< ( const ObjectFileRef reference) const
inline

References offset, and type.

◆ operator=() [1/2]

ObjectFileRef& osmscout::ObjectFileRef::operator= ( const ObjectFileRef other)
default

◆ operator=() [2/2]

ObjectFileRef& osmscout::ObjectFileRef::operator= ( ObjectFileRef &&  other)
default

◆ operator==()

bool osmscout::ObjectFileRef::operator== ( const ObjectFileRef reference) const
inline

References offset, and type.

◆ Set()

void osmscout::ObjectFileRef::Set ( const FileOffset offset,
const RefType type 
)
inline

◆ Valid()

Member Data Documentation

◆ offset

FileOffset osmscout::ObjectFileRef::offset =0

◆ type

RefType osmscout::ObjectFileRef::type =refNone

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