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

#include <item_iterator.hpp>

Public Types

using iterator = ItemIterator< T >
 
using const_iterator = ItemIterator< const T >
 

Public Member Functions

 ItemIteratorRange (data_type first, data_type last) noexcept
 
iterator begin () noexcept
 
iterator end () noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
size_t size () const
 
bool empty () const
 

Private Types

using data_type = typename std::conditional< std::is_const< T >::value, const unsigned char *, unsigned char * >::type
 

Private Attributes

data_type m_begin
 
data_type m_end
 

Member Typedef Documentation

template<typename T >
using osmium::memory::ItemIteratorRange< T >::const_iterator = ItemIterator<const T>
template<typename T >
using osmium::memory::ItemIteratorRange< T >::data_type = typename std::conditional<std::is_const<T>::value, const unsigned char*, unsigned char*>::type
private
template<typename T >
using osmium::memory::ItemIteratorRange< T >::iterator = ItemIterator<T>

Constructor & Destructor Documentation

template<typename T >
osmium::memory::ItemIteratorRange< T >::ItemIteratorRange ( data_type  first,
data_type  last 
)
inlinenoexcept

Member Function Documentation

template<typename T >
iterator osmium::memory::ItemIteratorRange< T >::begin ( )
inlinenoexcept
template<typename T >
const_iterator osmium::memory::ItemIteratorRange< T >::begin ( ) const
inlinenoexcept
template<typename T >
const_iterator osmium::memory::ItemIteratorRange< T >::cbegin ( ) const
inlinenoexcept
template<typename T >
const_iterator osmium::memory::ItemIteratorRange< T >::cend ( ) const
inlinenoexcept
template<typename T >
bool osmium::memory::ItemIteratorRange< T >::empty ( ) const
inline

Is this range empty?

Note that this methods has worst-case complexity O(n) with n being the number of items in the underlying range.

template<typename T >
iterator osmium::memory::ItemIteratorRange< T >::end ( )
inlinenoexcept
template<typename T >
const_iterator osmium::memory::ItemIteratorRange< T >::end ( ) const
inlinenoexcept
template<typename T >
size_t osmium::memory::ItemIteratorRange< T >::size ( ) const
inline

Return the number of items in this range.

Note that this methods has worst-case complexity O(n) with n being the number of items in the underlying range.

Member Data Documentation

template<typename T >
data_type osmium::memory::ItemIteratorRange< T >::m_begin
private
template<typename T >
data_type osmium::memory::ItemIteratorRange< T >::m_end
private

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