DxLibEx
dxle::utility::counter_iterator< T, > Class Template Reference

#include <constant_range_loop.hpp>

Inheritance diagram for dxle::utility::counter_iterator< T, >:
Collaboration diagram for dxle::utility::counter_iterator< T, >:

Public Types

typedef my_t::iterator_category iterator_category
 
typedef my_t::value_type value_type
 
typedef my_t::difference_type difference_type
 
typedef my_t::pointer pointer
 
typedef my_t::reference reference
 

Public Member Functions

DXLE_CONSTEXPR counter_iterator ()
 
DXLE_CONSTEXPR counter_iterator (T n)
 
DXLE_CXX14_CONSTEXPR counter_iteratoroperator= (const counter_iterator &o) DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR bool operator== (const counter_iterator &rhs) const DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR bool operator!= (const counter_iterator &rhs) const DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR const T & operator* () const DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CXX14_CONSTEXPR T & operator* () DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPRoperator[] (difference_type n) const DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR counter_iterator operator+ (difference_type n) const DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR counter_iterator operator- (difference_type n) const DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR bool operator< (const counter_iterator &n) const DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR bool operator<= (const counter_iterator &n) const DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR bool operator> (const counter_iterator &n) const DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR bool operator>= (const counter_iterator &n) const DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CXX14_CONSTEXPR counter_iteratoroperator+= (counter_iterator it) DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CXX14_CONSTEXPR counter_iteratoroperator-= (counter_iterator it) DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CXX14_CONSTEXPR counter_iteratoroperator++ () DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CXX14_CONSTEXPR counter_iterator operator++ (int) DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CXX14_CONSTEXPR counter_iteratoroperator-- () DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CXX14_CONSTEXPR counter_iterator operator-- (int) DXLE_NOEXCEPT_OR_NOTHROW
 

Detailed Description

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
class dxle::utility::counter_iterator< T, >

Definition at line 19 of file constant_range_loop.hpp.

Member Typedef Documentation

§ difference_type

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
typedef my_t::difference_type dxle::utility::counter_iterator< T, >::difference_type

Definition at line 26 of file constant_range_loop.hpp.

§ iterator_category

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
typedef my_t::iterator_category dxle::utility::counter_iterator< T, >::iterator_category

Definition at line 24 of file constant_range_loop.hpp.

§ pointer

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
typedef my_t::pointer dxle::utility::counter_iterator< T, >::pointer

Definition at line 27 of file constant_range_loop.hpp.

§ reference

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
typedef my_t::reference dxle::utility::counter_iterator< T, >::reference

Definition at line 28 of file constant_range_loop.hpp.

§ value_type

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
typedef my_t::value_type dxle::utility::counter_iterator< T, >::value_type

Definition at line 25 of file constant_range_loop.hpp.

Constructor & Destructor Documentation

§ counter_iterator() [1/2]

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR dxle::utility::counter_iterator< T, >::counter_iterator ( )
inline

Definition at line 30 of file constant_range_loop.hpp.

§ counter_iterator() [2/2]

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR dxle::utility::counter_iterator< T, >::counter_iterator ( n)
inline

Definition at line 31 of file constant_range_loop.hpp.

Member Function Documentation

§ operator!=()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR bool dxle::utility::counter_iterator< T, >::operator!= ( const counter_iterator< T, > &  rhs) const
inline

Definition at line 37 of file constant_range_loop.hpp.

§ operator*() [1/2]

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR const T& dxle::utility::counter_iterator< T, >::operator* ( ) const
inline

Definition at line 38 of file constant_range_loop.hpp.

§ operator*() [2/2]

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CXX14_CONSTEXPR T& dxle::utility::counter_iterator< T, >::operator* ( )
inline

Definition at line 40 of file constant_range_loop.hpp.

§ operator+()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR counter_iterator dxle::utility::counter_iterator< T, >::operator+ ( difference_type  n) const
inline

Definition at line 43 of file constant_range_loop.hpp.

§ operator++() [1/2]

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CXX14_CONSTEXPR counter_iterator& dxle::utility::counter_iterator< T, >::operator++ ( )
inline

Definition at line 57 of file constant_range_loop.hpp.

§ operator++() [2/2]

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CXX14_CONSTEXPR counter_iterator dxle::utility::counter_iterator< T, >::operator++ ( int  )
inline

Definition at line 61 of file constant_range_loop.hpp.

§ operator+=()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CXX14_CONSTEXPR counter_iterator& dxle::utility::counter_iterator< T, >::operator+= ( counter_iterator< T, >  it)
inline

Definition at line 49 of file constant_range_loop.hpp.

§ operator-()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR counter_iterator dxle::utility::counter_iterator< T, >::operator- ( difference_type  n) const
inline

Definition at line 44 of file constant_range_loop.hpp.

§ operator--() [1/2]

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CXX14_CONSTEXPR counter_iterator& dxle::utility::counter_iterator< T, >::operator-- ( )
inline

Definition at line 66 of file constant_range_loop.hpp.

§ operator--() [2/2]

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CXX14_CONSTEXPR counter_iterator dxle::utility::counter_iterator< T, >::operator-- ( int  )
inline

Definition at line 70 of file constant_range_loop.hpp.

§ operator-=()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CXX14_CONSTEXPR counter_iterator& dxle::utility::counter_iterator< T, >::operator-= ( counter_iterator< T, >  it)
inline

Definition at line 53 of file constant_range_loop.hpp.

§ operator<()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR bool dxle::utility::counter_iterator< T, >::operator< ( const counter_iterator< T, > &  n) const
inline

Definition at line 45 of file constant_range_loop.hpp.

§ operator<=()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR bool dxle::utility::counter_iterator< T, >::operator<= ( const counter_iterator< T, > &  n) const
inline

Definition at line 46 of file constant_range_loop.hpp.

§ operator=()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CXX14_CONSTEXPR counter_iterator& dxle::utility::counter_iterator< T, >::operator= ( const counter_iterator< T, > &  o)
inline

Definition at line 32 of file constant_range_loop.hpp.

§ operator==()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR bool dxle::utility::counter_iterator< T, >::operator== ( const counter_iterator< T, > &  rhs) const
inline

Definition at line 36 of file constant_range_loop.hpp.

§ operator>()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR bool dxle::utility::counter_iterator< T, >::operator> ( const counter_iterator< T, > &  n) const
inline

Definition at line 47 of file constant_range_loop.hpp.

§ operator>=()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR bool dxle::utility::counter_iterator< T, >::operator>= ( const counter_iterator< T, > &  n) const
inline

Definition at line 48 of file constant_range_loop.hpp.

§ operator[]()

template<typename T, enable_if_t< std::is_arithmetic< T >::value, nullptr_t > = nullptr>
DXLE_CONSTEXPR T dxle::utility::counter_iterator< T, >::operator[] ( difference_type  n) const
inline

Definition at line 42 of file constant_range_loop.hpp.


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