Libosmium
2.15.5
Fast and flexible C++ library for working with OpenStreetMap data
|
Go to the documentation of this file. 1 #ifndef OSMIUM_INDEX_MULTIMAP_HPP
2 #define OSMIUM_INDEX_MULTIMAP_HPP
38 #include <type_traits>
50 template <
typename TId,
typename TValue>
74 virtual ~
Multimap() noexcept = default;
77 virtual
void set(const TId
id, const TValue value) = 0;
89 virtual
size_t size() const = 0;
104 virtual
void clear() = 0;
115 throw std::runtime_error{
"can't dump as list"};
126 #endif // OSMIUM_INDEX_MULTIMAP_HPP
element_type * iterator
Definition: multimap.hpp:79
virtual void dump_as_list(const int)
Definition: multimap.hpp:114
typename std::pair< TId, TValue > element_type
Definition: multimap.hpp:54
virtual void sort()
Definition: multimap.hpp:110
TValue value_type
The "value" type, usually a Location or size_t.
Definition: multimap.hpp:67
virtual size_t size() const =0
Definition: multimap.hpp:51
TId key_type
The "key" type, usually osmium::unsigned_object_id_type.
Definition: multimap.hpp:64
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
virtual size_t used_memory() const =0
virtual void set(const TId id, const TValue value)=0
Set the field with id to value.