OSM::UniqueElement

Search for usage in LXR

OSM::UniqueElement Class Reference

#include <element.h>

Public Member Functions

 UniqueElement (const UniqueElement &)=delete
 
 UniqueElement (Node *node)
 
 UniqueElement (Relation *rel)
 
 UniqueElement (UniqueElement &&other) noexcept
 
 UniqueElement (Way *way)
 
constexpr Element element () const
 
Nodenode () const
 
 operator bool () const
 
constexpr operator Element () const
 
UniqueElementoperator= (const UniqueElement &)=delete
 
UniqueElementoperator= (UniqueElement &&other) noexcept
 
Relationrelation () const
 
void removeTag (TagKey key)
 
void setId (Id id)
 
void setTagValue (TagKey key, QByteArray &&value)
 
Wayway () const
 

Detailed Description

A std::unique_ptr-like object for OSM element types.

Definition at line 99 of file element.h.

Constructor & Destructor Documentation

◆ UniqueElement() [1/4]

OSM::UniqueElement::UniqueElement ( Node * node)
inlineexplicit

Definition at line 103 of file element.h.

◆ UniqueElement() [2/4]

OSM::UniqueElement::UniqueElement ( Way * way)
inlineexplicit

Definition at line 104 of file element.h.

◆ UniqueElement() [3/4]

OSM::UniqueElement::UniqueElement ( Relation * rel)
inlineexplicit

Definition at line 105 of file element.h.

◆ UniqueElement() [4/4]

OSM::UniqueElement::UniqueElement ( UniqueElement && other)
inlinenoexcept

Definition at line 108 of file element.h.

◆ ~UniqueElement()

UniqueElement::~UniqueElement ( )

Definition at line 232 of file element.cpp.

Member Function Documentation

◆ element()

Element OSM::UniqueElement::element ( ) const
inlinenodiscardconstexpr

Definition at line 122 of file element.h.

◆ node()

Node * OSM::UniqueElement::node ( ) const
inlinenodiscard

Definition at line 125 of file element.h.

◆ operator bool()

OSM::UniqueElement::operator bool ( ) const
inlineexplicitnodiscard

Definition at line 120 of file element.h.

◆ operator Element()

OSM::UniqueElement::operator Element ( ) const
inlinenodiscardconstexpr

Definition at line 123 of file element.h.

◆ operator=()

UniqueElement & OSM::UniqueElement::operator= ( UniqueElement && other)
inlinenoexcept

Definition at line 115 of file element.h.

◆ relation()

Relation * OSM::UniqueElement::relation ( ) const
inlinenodiscard

Definition at line 127 of file element.h.

◆ removeTag()

void UniqueElement::removeTag ( TagKey key)

Definition at line 283 of file element.cpp.

◆ setId()

void UniqueElement::setId ( Id id)

Definition at line 249 of file element.cpp.

◆ setTagValue()

void UniqueElement::setTagValue ( TagKey key,
QByteArray && value )

Definition at line 266 of file element.cpp.

◆ way()

Way * OSM::UniqueElement::way ( ) const
inlinenodiscard

Definition at line 126 of file element.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:57:47 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.