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

An iterator that slices a line into tile segments. More...

#include <PathTiling.h>

Public Types

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

Public Member Functions

 LineSliceIterator (InputIterator segment_it, const uint32_t line_width)
 Constructs a LineSliceIterator. More...
 
TileKey operator* ()
 
LineSliceIteratoroperator++ ()
 
bool operator== (const LineSliceIterator &other) const
 
bool operator!= (const LineSliceIterator &other) const
 

Detailed Description

template<typename InputIterator>
class olp::geo::LineSliceIterator< InputIterator >

An iterator that slices a line into tile segments.

This iterator takes an input iterator of adjacent tile segments and applies a line slicing algorithm to generate individual tile keys along the path.

Constructor & Destructor Documentation

◆ LineSliceIterator()

template<typename InputIterator >
olp::geo::LineSliceIterator< InputIterator >::LineSliceIterator ( InputIterator  segment_it,
const uint32_t  line_width 
)
inlineexplicit

Constructs a LineSliceIterator.

Parameters
segment_itThe iterator over tile segments.
line_widthThe width of the line in tiles.

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