#include <relations_map.hpp>
|
detail::rel_index_map_type< uint32_t > | m_map32 |
|
detail::rel_index_map_type< uint64_t > | m_map64 |
|
bool | m_small |
|
Index for looking up parent relation IDs given a member relation ID or the other way around.
You can not instantiate such an index yourself, instead you need to instantiate a RelationsMapStash, fill it and then create an index from it:
...
}
...
...
osmium::unsigned_object_id_type member_id = ...;
...
});
...
Definition: relation.hpp:161
void for_each(const osmium::unsigned_object_id_type id, TFunc &&func) const
Definition: relations_map.hpp:232
Definition: relations_map.hpp:323
RelationsMapIndex build_member_to_parent_index()
Definition: relations_map.hpp:415
void add_members(const osmium::Relation &relation)
Definition: relations_map.hpp:370
uint64_t unsigned_object_id_type
Type for OSM object (node, way, or relation) IDs where we only allow positive IDs.
Definition: types.hpp:46
◆ RelationsMapIndex() [1/5]
osmium::index::RelationsMapIndex::RelationsMapIndex |
( |
detail::rel_index_map_type< uint32_t > && |
map | ) |
|
|
inlineexplicitprivate |
◆ RelationsMapIndex() [2/5]
osmium::index::RelationsMapIndex::RelationsMapIndex |
( |
detail::rel_index_map_type< uint64_t > && |
map | ) |
|
|
inlineexplicitprivate |
◆ RelationsMapIndex() [3/5]
osmium::index::RelationsMapIndex::RelationsMapIndex |
( |
| ) |
|
|
delete |
◆ RelationsMapIndex() [4/5]
◆ RelationsMapIndex() [5/5]
◆ ~RelationsMapIndex()
osmium::index::RelationsMapIndex::~RelationsMapIndex |
( |
| ) |
|
|
defaultnoexcept |
◆ empty()
bool osmium::index::RelationsMapIndex::empty |
( |
| ) |
const |
|
inlinenoexcept |
Is this index empty?
Complexity: Constant.
◆ for_each()
template<typename TFunc >
Find the given relation id in the index and call the given function with all related relation ids.
Complexity: Logarithmic in the number of elements in the index. (Lookup uses binary search.)
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ size()
std::size_t osmium::index::RelationsMapIndex::size |
( |
| ) |
const |
|
inlinenoexcept |
How many entries are in this index?
Complexity: Constant.
◆ RelationsMapIndexes
◆ RelationsMapStash
◆ m_map32
detail::rel_index_map_type<uint32_t> osmium::index::RelationsMapIndex::m_map32 |
|
private |
◆ m_map64
detail::rel_index_map_type<uint64_t> osmium::index::RelationsMapIndex::m_map64 |
|
private |
◆ m_small
bool osmium::index::RelationsMapIndex::m_small |
|
private |
The documentation for this class was generated from the following file: