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

Iterator for iterating over adjacent pairs in a sequence. More...

#include <PathTiling.h>

Public Types

using value_type = std::pair< typename InputIterator::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

 AdjacentPairIterator (InputIterator segment_it)
 Constructs an AdjacentPairIterator. More...
 
 AdjacentPairIterator (typename InputIterator::value_type initial_value, InputIterator segment_it)
 Constructs an AdjacentPairIterator with an initial value. More...
 
value_type operator* () const
 
AdjacentPairIteratoroperator++ ()
 
bool operator== (const AdjacentPairIterator &other) const
 
bool operator!= (const AdjacentPairIterator &other) const
 

Detailed Description

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

Iterator for iterating over adjacent pairs in a sequence.

Constructor & Destructor Documentation

◆ AdjacentPairIterator() [1/2]

template<typename InputIterator >
olp::geo::AdjacentPairIterator< InputIterator >::AdjacentPairIterator ( InputIterator  segment_it)
inlineexplicit

Constructs an AdjacentPairIterator.

Parameters
segment_itThe input iterator.

◆ AdjacentPairIterator() [2/2]

template<typename InputIterator >
olp::geo::AdjacentPairIterator< InputIterator >::AdjacentPairIterator ( typename InputIterator::value_type  initial_value,
InputIterator  segment_it 
)
inline

Constructs an AdjacentPairIterator with an initial value.

Parameters
initial_valueThe initial value.
segment_itThe input iterator.

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