Libosmium  2.15.4
Fast and flexible C++ library for working with OpenStreetMap data
Public Member Functions | Private Attributes | List of all members
osmium::nwr_array< T > Class Template Reference

#include <nwr_array.hpp>

Public Member Functions

 nwr_array ()
 
T & operator() (const osmium::item_type type) noexcept
 
const T & operator() (const osmium::item_type type) const noexcept
 

Private Attributes

std::array< T, 3 > m_data
 

Detailed Description

template<typename T>
class osmium::nwr_array< T >

Often some information must be kept separately for nodes, ways, and relations. Then this helper class becomes useful. It can keep three somethings (of type T) which can be accessed conveniently through the call operator.

Constructor & Destructor Documentation

◆ nwr_array()

template<typename T >
osmium::nwr_array< T >::nwr_array ( )
inline

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
T& osmium::nwr_array< T >::operator() ( const osmium::item_type  type)
inlinenoexcept

◆ operator()() [2/2]

template<typename T >
const T& osmium::nwr_array< T >::operator() ( const osmium::item_type  type) const
inlinenoexcept

Member Data Documentation

◆ m_data

template<typename T >
std::array<T, 3> osmium::nwr_array< T >::m_data
private

The documentation for this class was generated from the following file: