Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <input_iterator.hpp>
Public Types | |
using | iterator_category = std::input_iterator_tag |
using | value_type = TItem |
using | difference_type = ptrdiff_t |
using | pointer = value_type * |
using | reference = value_type & |
Public Member Functions | |
InputIterator (TSource &source) | |
InputIterator () noexcept | |
InputIterator & | operator++ () |
InputIterator | operator++ (int) |
bool | operator== (const InputIterator &rhs) const noexcept |
bool | operator!= (const InputIterator &rhs) const noexcept |
reference | operator* () const |
pointer | operator-> () const |
Private Types | |
using | item_iterator = typename osmium::memory::Buffer::t_iterator< TItem > |
Private Member Functions | |
void | update_buffer () |
Private Attributes | |
TSource * | m_source |
std::shared_ptr< osmium::memory::Buffer > | m_buffer |
item_iterator | m_iter {} |
This iterator class allows you to iterate over all items from a source. It hides all the buffer handling and makes the contents of a source accessible as a normal STL input iterator.
using osmium::io::InputIterator< TSource, TItem >::difference_type = ptrdiff_t |
|
private |
using osmium::io::InputIterator< TSource, TItem >::iterator_category = std::input_iterator_tag |
using osmium::io::InputIterator< TSource, TItem >::pointer = value_type* |
using osmium::io::InputIterator< TSource, TItem >::reference = value_type& |
using osmium::io::InputIterator< TSource, TItem >::value_type = TItem |
|
inlineexplicit |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlineprivate |
|
private |
|
private |
|
private |