Libosmium
2.5.4
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <map.hpp>
Public Types | |
typedef TId | id_type |
typedef TValue | value_type |
typedef osmium::index::map::Map< id_type, value_type > | map_type |
typedef std::function< map_type *(const std::vector< std::string > &)> | create_map_func |
Public Member Functions | |
bool | register_map (const std::string &map_type_name, create_map_func func) |
bool | has_map_type (const std::string &map_type_name) const |
std::vector< std::string > | map_types () const |
std::unique_ptr< map_type > | create_map (const std::string &config_string) const |
Static Public Member Functions | |
static MapFactory< id_type, value_type > & | instance () |
Private Member Functions | |
MapFactory ()=default | |
MapFactory (const MapFactory &)=delete | |
MapFactory & | operator= (const MapFactory &)=delete |
MapFactory (MapFactory &&)=delete | |
MapFactory & | operator= (MapFactory &&)=delete |
Static Private Member Functions | |
static OSMIUM_NORETURN void | error (const std::string &map_type_name) |
Private Attributes | |
std::map< const std::string, create_map_func > | m_callbacks |
typedef std::function<map_type*(const std::vector<std::string>&)> osmium::index::MapFactory< TId, TValue >::create_map_func |
typedef TId osmium::index::MapFactory< TId, TValue >::id_type |
typedef osmium::index::map::Map<id_type, value_type> osmium::index::MapFactory< TId, TValue >::map_type |
typedef TValue osmium::index::MapFactory< TId, TValue >::value_type |
|
privatedefault |
|
privatedelete |
|
privatedelete |
|
inline |
|
inlinestaticprivate |
|
inline |
|
inlinestatic |
|
inline |
|
privatedelete |
|
privatedelete |
|
inline |
|
private |