1#ifndef OSMIUM_INDEX_MAP_SPARSE_FILE_ARRAY_HPP
2#define OSMIUM_INDEX_MAP_SPARSE_FILE_ARRAY_HPP
36#include <osmium/index/detail/create_map_with_fd.hpp>
37#include <osmium/index/detail/mmap_vector_file.hpp>
38#include <osmium/index/detail/vector_map.hpp>
43#define OSMIUM_HAS_INDEX_MAP_SPARSE_FILE_ARRAY
51 template <
typename TId,
typename TValue>
52 using SparseFileArray = VectorBasedSparseMap<TId, TValue, osmium::detail::mmap_vector_file>;
54 template <
typename TId,
typename TValue>
57 return osmium::index::detail::create_map_with_fd<SparseFileArray<TId, TValue>>(config);
67#ifdef OSMIUM_WANT_NODE_LOCATION_MAPS
Definition: location.hpp:271
#define REGISTER_MAP(id, value, klass, name)
Definition: map.hpp:287
VectorBasedSparseMap< TId, TValue, osmium::detail::mmap_vector_file > SparseFileArray
Definition: sparse_file_array.hpp:52
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
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
SparseFileArray< TId, TValue > * operator()(const std::vector< std::string > &config)
Definition: sparse_file_array.hpp:56