libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::ObjectOSMRef Class Referencefinal

Reference to an OSM object by its type (Node, Way, Relation) and its OSM object id. More...

#include <ObjectRef.h>

Public Member Functions

const OSMId & GetId () const
std::string GetName () const
const OSMRefType & GetType () const
const char * GetTypeName () const
bool Invalid () const
void Invalidate ()
bool IsNode () const
bool IsRelation () const
bool IsWay () const
 ObjectOSMRef ()=default
 ObjectOSMRef (const ObjectOSMRef &ref)=default
 ObjectOSMRef (ObjectOSMRef &&ref)=default
 ObjectOSMRef (OSMId id, OSMRefType type)
bool operator!= (const ObjectOSMRef &reference) const
bool operator< (const ObjectOSMRef &reference) const
ObjectOSMRef & operator= (const ObjectOSMRef &other)=default
ObjectOSMRef & operator= (ObjectOSMRef &&other)=default
bool operator== (const ObjectOSMRef &reference) const
void Set (const OSMId &id, const OSMRefType &type)
bool Valid () const
 ~ObjectOSMRef ()=default

Public Attributes

OSMId id =0
OSMRefType type =osmRefNone

Detailed Description

Reference to an OSM object by its type (Node, Way, Relation) and its OSM object id.

Constructor & Destructor Documentation

◆ ObjectOSMRef() [1/4]

osmscout::ObjectOSMRef::ObjectOSMRef ( )
default

◆ ObjectOSMRef() [2/4]

osmscout::ObjectOSMRef::ObjectOSMRef ( const ObjectOSMRef & ref)
default

References ObjectOSMRef().

◆ ObjectOSMRef() [3/4]

osmscout::ObjectOSMRef::ObjectOSMRef ( ObjectOSMRef && ref)
default

References ObjectOSMRef().

◆ ObjectOSMRef() [4/4]

osmscout::ObjectOSMRef::ObjectOSMRef ( OSMId id,
OSMRefType type )
inline

References id, and type.

◆ ~ObjectOSMRef()

osmscout::ObjectOSMRef::~ObjectOSMRef ( )
default

Member Function Documentation

◆ GetId()

const OSMId & osmscout::ObjectOSMRef::GetId ( ) const
inline

References id.

◆ GetName()

std::string osmscout::ObjectOSMRef::GetName ( ) const

References GetTypeName().

◆ GetType()

const OSMRefType & osmscout::ObjectOSMRef::GetType ( ) const
inline

References type.

◆ GetTypeName()

const char * osmscout::ObjectOSMRef::GetTypeName ( ) const

◆ Invalid()

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

References osmscout::osmRefNone, and type.

◆ Invalidate()

void osmscout::ObjectOSMRef::Invalidate ( )
inline

References osmscout::osmRefNone.

◆ IsNode()

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

References osmscout::osmRefNode, and type.

◆ IsRelation()

bool osmscout::ObjectOSMRef::IsRelation ( ) const
inline

References osmscout::osmRefRelation, and type.

◆ IsWay()

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

References osmscout::osmRefWay, and type.

◆ operator!=()

bool osmscout::ObjectOSMRef::operator!= ( const ObjectOSMRef & reference) const
inline

References id, ObjectOSMRef(), and type.

◆ operator<()

bool osmscout::ObjectOSMRef::operator< ( const ObjectOSMRef & reference) const
inline

References id, ObjectOSMRef(), and type.

◆ operator=() [1/2]

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

References ObjectOSMRef().

◆ operator=() [2/2]

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

References ObjectOSMRef().

◆ operator==()

bool osmscout::ObjectOSMRef::operator== ( const ObjectOSMRef & reference) const
inline

References id, ObjectOSMRef(), and type.

◆ Set()

void osmscout::ObjectOSMRef::Set ( const OSMId & id,
const OSMRefType & type )
inline

References type.

◆ Valid()

bool osmscout::ObjectOSMRef::Valid ( ) const
inline

References osmscout::osmRefNone, and type.

Member Data Documentation

◆ id

OSMId osmscout::ObjectOSMRef::id =0

◆ type


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