|
Libosmium
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <relations_database.hpp>

Public Member Functions | |
| RelationsDatabase * | relation_database () const noexcept |
| std::size_t | pos () const noexcept |
| Relation & | operator* () |
| const Relation & | operator* () const |
| Relation * | operator-> () |
| const Relation * | operator-> () const |
| void | remove () |
| void | set_members (std::size_t value) noexcept |
| void | increment_members () noexcept |
| void | decrement_members () noexcept |
| bool | has_all_members () const noexcept |
Private Member Functions | |
| RelationHandle (RelationsDatabase *relation_database, std::size_t pos) | |
Private Attributes | |
| RelationsDatabase * | m_relation_database |
| std::size_t | m_pos |
Friends | |
| class | RelationsDatabase |
A RelationHandle is used to access elements in a RelationsDatabase.
RelationHandles can not be created by user code, they are only given out by a RelationsDatabase object.
|
inlineprivate |
|
inlinenoexcept |
Decrement the number of relation members that we want to track.
|
inlinenoexcept |
Do we have all members? This is true if the number of tracked members is zero.
|
inlinenoexcept |
Increment the number of relation members that we want to track.
|
inline |
Access the relation stored in the database.
|
inline |
Access the relation stored in the database.
|
inline |
Call a function on the relation stored in the database.
|
inline |
Call a function on the relation stored in the database.
|
inlinenoexcept |
The position of the element in the RelationsDatabase. Use the RelationsDatabase::operator[] to get the handle back from this position:
|
inlinenoexcept |
The RelationsDatabase this handle refers to.
|
inline |
Remove the relation referred to by this handle from the database. All handles referring to this database element become invalid.
|
inlinenoexcept |
Set the number of relation members that we want to track.
|
friend |
|
private |
|
private |