olp-cpp-sdk  1.23.1
Public Types | Public Member Functions | List of all members
olp::geo::TilingIterator< InputIterator, TilingScheme > Class Template Reference

Iterator for transforming input coordinates into TileKeys using a TilingScheme. More...

#include <PathTiling.h>

Public Types

using value_type = TileKey
 
using difference_type = std::ptrdiff_t
 
using pointer = TileKey *
 
using reference = TileKey &
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

 TilingIterator (InputIterator iterator, const uint32_t tile_level=0)
 Constructs a TilingIterator. More...
 
value_type operator* () const
 Dereference operator. More...
 
TilingIteratoroperator++ ()
 
bool operator== (const TilingIterator &other) const
 
bool operator!= (const TilingIterator &other) const
 

Detailed Description

template<typename InputIterator, typename TilingScheme>
class olp::geo::TilingIterator< InputIterator, TilingScheme >

Iterator for transforming input coordinates into TileKeys using a TilingScheme.

Constructor & Destructor Documentation

◆ TilingIterator()

template<typename InputIterator , typename TilingScheme >
olp::geo::TilingIterator< InputIterator, TilingScheme >::TilingIterator ( InputIterator  iterator,
const uint32_t  tile_level = 0 
)
inlineexplicit

Constructs a TilingIterator.

Parameters
iteratorThe input iterator.
tile_levelThe tile level (default: 0).

Member Function Documentation

◆ operator*()

template<typename InputIterator , typename TilingScheme >
value_type olp::geo::TilingIterator< InputIterator, TilingScheme >::operator* ( ) const
inline

Dereference operator.

Returns
The TileKey corresponding to the current iterator position.

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