|
libosmscout 0.1
|
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 |
|
default |
|
default |
|
default |
|
inline |
|
default |
|
inline |
| std::string osmscout::ObjectOSMRef::GetName | ( | ) | const |
References GetTypeName().
|
inline |
| const char * osmscout::ObjectOSMRef::GetTypeName | ( | ) | const |
References osmscout::osmRefNode, osmscout::osmRefRelation, osmscout::osmRefWay, and type.
Referenced by GetName().
|
inline |
References osmscout::osmRefNone.
|
inline |
References osmscout::osmRefNone.
|
inline |
References osmscout::osmRefNode.
|
inline |
References osmscout::osmRefRelation.
|
inline |
References osmscout::osmRefWay.
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
References osmscout::osmRefNone.
| OSMId osmscout::ObjectOSMRef::id =0 |
Referenced by operator!=(), operator<(), and operator==().
| OSMRefType osmscout::ObjectOSMRef::type =osmRefNone |
Referenced by GetTypeName(), operator!=(), operator<(), and operator==().