autoppl  v0.8
A C++ template library for probabilistic programming
ppl::util::counting_iterator< IntType > Struct Template Reference

#include <counting_iterator.hpp>

Public Types

using difference_type = int32_t
 
using value_type = IntType
 
using pointer = value_type *
 
using reference = IntType &
 
using iterator_category = std::bidirectional_iterator_tag
 

Public Member Functions

 counting_iterator (value_type begin)
 
counting_iteratoroperator++ ()
 
counting_iteratoroperator-- ()
 
counting_iterator operator++ (int)
 
counting_iterator operator-- (int)
 
reference operator* ()
 

Friends

constexpr friend bool operator== (const counting_iterator &, const counting_iterator &)
 
constexpr friend bool operator!= (const counting_iterator &, const counting_iterator &)
 

Member Typedef Documentation

◆ difference_type

template<class IntType = uint32_t>
using ppl::util::counting_iterator< IntType >::difference_type = int32_t

◆ iterator_category

template<class IntType = uint32_t>
using ppl::util::counting_iterator< IntType >::iterator_category = std::bidirectional_iterator_tag

◆ pointer

template<class IntType = uint32_t>
using ppl::util::counting_iterator< IntType >::pointer = value_type*

◆ reference

template<class IntType = uint32_t>
using ppl::util::counting_iterator< IntType >::reference = IntType&

◆ value_type

template<class IntType = uint32_t>
using ppl::util::counting_iterator< IntType >::value_type = IntType

Constructor & Destructor Documentation

◆ counting_iterator()

template<class IntType = uint32_t>
ppl::util::counting_iterator< IntType >::counting_iterator ( value_type  begin)
inline

Member Function Documentation

◆ operator*()

template<class IntType = uint32_t>
reference ppl::util::counting_iterator< IntType >::operator* ( )
inline

◆ operator++() [1/2]

template<class IntType = uint32_t>
counting_iterator& ppl::util::counting_iterator< IntType >::operator++ ( )
inline

◆ operator++() [2/2]

template<class IntType = uint32_t>
counting_iterator ppl::util::counting_iterator< IntType >::operator++ ( int  )
inline

◆ operator--() [1/2]

template<class IntType = uint32_t>
counting_iterator& ppl::util::counting_iterator< IntType >::operator-- ( )
inline

◆ operator--() [2/2]

template<class IntType = uint32_t>
counting_iterator ppl::util::counting_iterator< IntType >::operator-- ( int  )
inline

Friends And Related Function Documentation

◆ operator!=

template<class IntType = uint32_t>
constexpr friend bool operator!= ( const counting_iterator< IntType > &  it1,
const counting_iterator< IntType > &  it2 
)
friend

◆ operator==

template<class IntType = uint32_t>
constexpr friend bool operator== ( const counting_iterator< IntType > &  it1,
const counting_iterator< IntType > &  it2 
)
friend

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