YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::counted_iterator< It > Class Template Reference

#include <iterator.hpp>

Public Types

using iterator_category = typename std::iterator_traits< It >::iterator_category
 
using value_type = typename std::iterator_traits< It >::value_type
 
using difference_type = typename std::iterator_traits< It >::difference_type
 
using pointer = typename std::iterator_traits< It >::pointer
 
using reference = typename std::iterator_traits< It >::reference
 

Public Member Functions

 counted_iterator ()
 
 counted_iterator (It it, difference_type n)
 
reference operator* () const
 
pointer operator-> () const
 
counted_iteratoroperator++ ()
 
counted_iterator operator++ (int)
 
bool operator== (const counted_iterator &rhs) const
 
bool operator!= (const counted_iterator &rhs) const
 

Friends

bool operator== (const counted_iterator< It > &lhs, DefaultSentinel rhs)
 
bool operator== (DefaultSentinel lhs, const counted_iterator< It > &rhs)
 
bool operator!= (const counted_iterator< It > &lhs, DefaultSentinel rhs)
 
bool operator!= (DefaultSentinel lhs, const counted_iterator< It > &rhs)
 
difference_type operator- (const counted_iterator< It > lhs, DefaultSentinel rhs)
 
difference_type operator- (DefaultSentinel lhs, const counted_iterator< It > rhs)
 

Detailed Description

template<typename It>
class yaclib::detail::counted_iterator< It >

Definition at line 13 of file iterator.hpp.

Member Typedef Documentation

◆ difference_type

template<typename It >
using yaclib::detail::counted_iterator< It >::difference_type = typename std::iterator_traits<It>::difference_type

Definition at line 17 of file iterator.hpp.

◆ iterator_category

template<typename It >
using yaclib::detail::counted_iterator< It >::iterator_category = typename std::iterator_traits<It>::iterator_category

Definition at line 15 of file iterator.hpp.

◆ pointer

template<typename It >
using yaclib::detail::counted_iterator< It >::pointer = typename std::iterator_traits<It>::pointer

Definition at line 18 of file iterator.hpp.

◆ reference

template<typename It >
using yaclib::detail::counted_iterator< It >::reference = typename std::iterator_traits<It>::reference

Definition at line 19 of file iterator.hpp.

◆ value_type

template<typename It >
using yaclib::detail::counted_iterator< It >::value_type = typename std::iterator_traits<It>::value_type

Definition at line 16 of file iterator.hpp.

Constructor & Destructor Documentation

◆ counted_iterator() [1/2]

template<typename It >
yaclib::detail::counted_iterator< It >::counted_iterator ( )
inline

Definition at line 21 of file iterator.hpp.

◆ counted_iterator() [2/2]

template<typename It >
yaclib::detail::counted_iterator< It >::counted_iterator ( It  it,
difference_type  n 
)
inline

Definition at line 24 of file iterator.hpp.

Member Function Documentation

◆ operator!=()

template<typename It >
bool yaclib::detail::counted_iterator< It >::operator!= ( const counted_iterator< It > &  rhs) const
inline

Definition at line 51 of file iterator.hpp.

References yaclib::MakeContract().

◆ operator*()

template<typename It >
reference yaclib::detail::counted_iterator< It >::operator* ( ) const
inline

Definition at line 27 of file iterator.hpp.

◆ operator++() [1/2]

Definition at line 35 of file iterator.hpp.

◆ operator++() [2/2]

Definition at line 41 of file iterator.hpp.

References yaclib::MakeContract().

◆ operator->()

template<typename It >
pointer yaclib::detail::counted_iterator< It >::operator-> ( ) const
inline

Definition at line 31 of file iterator.hpp.

◆ operator==()

template<typename It >
bool yaclib::detail::counted_iterator< It >::operator== ( const counted_iterator< It > &  rhs) const
inline

Definition at line 47 of file iterator.hpp.

References yaclib::MakeContract().

Friends And Related Symbol Documentation

◆ operator!= [1/2]

template<typename It >
bool operator!= ( const counted_iterator< It > &  lhs,
DefaultSentinel  rhs 
)
friend

Definition at line 67 of file iterator.hpp.

◆ operator!= [2/2]

template<typename It >
bool operator!= ( DefaultSentinel  lhs,
const counted_iterator< It > &  rhs 
)
friend

Definition at line 71 of file iterator.hpp.

◆ operator- [1/2]

template<typename It >
difference_type operator- ( const counted_iterator< It >  lhs,
DefaultSentinel  rhs 
)
friend

Definition at line 75 of file iterator.hpp.

◆ operator- [2/2]

template<typename It >
difference_type operator- ( DefaultSentinel  lhs,
const counted_iterator< It >  rhs 
)
friend

Definition at line 79 of file iterator.hpp.

◆ operator== [1/2]

template<typename It >
bool operator== ( const counted_iterator< It > &  lhs,
DefaultSentinel  rhs 
)
friend

Definition at line 59 of file iterator.hpp.

◆ operator== [2/2]

template<typename It >
bool operator== ( DefaultSentinel  lhs,
const counted_iterator< It > &  rhs 
)
friend

Definition at line 63 of file iterator.hpp.


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