openMSX
Public Types | Public Member Functions | Friends | List of all members
XRange< T >::XRangeIter Class Reference

#include <xrange.hh>

Public Types

using difference_type = ptrdiff_t
 
using value_type = T
 
using pointer = T *
 
using reference = T &
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

 XRangeIter (T x_)
 
operator* () const
 
XRangeIteroperator++ ()
 
XRangeIter operator++ (int)
 
bool operator== (const XRangeIter &other) const
 
bool operator!= (const XRangeIter &other) const
 
XRangeIteroperator-- ()
 
XRangeIter operator-- (int)
 
XRangeIteroperator+= (difference_type n)
 
XRangeIteroperator-= (difference_type n)
 
operator[] (difference_type n)
 

Friends

XRangeIter operator+ (XRangeIter i, difference_type n)
 
XRangeIter operator+ (difference_type n, XRangeIter i)
 
XRangeIter operator- (XRangeIter i, difference_type n)
 
difference_type operator- (const XRangeIter &i, const XRangeIter &j)
 
bool operator< (const XRangeIter &i, const XRangeIter &j)
 
bool operator<= (const XRangeIter &i, const XRangeIter &j)
 
bool operator> (const XRangeIter &i, const XRangeIter &j)
 
bool operator>= (const XRangeIter &i, const XRangeIter &j)
 

Detailed Description

template<typename T>
class XRange< T >::XRangeIter

Definition at line 39 of file xrange.hh.

Member Typedef Documentation

◆ difference_type

template<typename T >
using XRange< T >::XRangeIter::difference_type = ptrdiff_t

Definition at line 42 of file xrange.hh.

◆ iterator_category

template<typename T >
using XRange< T >::XRangeIter::iterator_category = std::random_access_iterator_tag

Definition at line 46 of file xrange.hh.

◆ pointer

template<typename T >
using XRange< T >::XRangeIter::pointer = T*

Definition at line 44 of file xrange.hh.

◆ reference

template<typename T >
using XRange< T >::XRangeIter::reference = T&

Definition at line 45 of file xrange.hh.

◆ value_type

template<typename T >
using XRange< T >::XRangeIter::value_type = T

Definition at line 43 of file xrange.hh.

Constructor & Destructor Documentation

◆ XRangeIter()

template<typename T >
XRange< T >::XRangeIter::XRangeIter ( x_)
inlineexplicit

Definition at line 48 of file xrange.hh.

Member Function Documentation

◆ operator!=()

template<typename T >
bool XRange< T >::XRangeIter::operator!= ( const XRangeIter other) const
inline

Definition at line 75 of file xrange.hh.

◆ operator*()

template<typename T >
T XRange< T >::XRangeIter::operator* ( ) const
inline

Definition at line 54 of file xrange.hh.

◆ operator++() [1/2]

template<typename T >
XRangeIter& XRange< T >::XRangeIter::operator++ ( )
inline

Definition at line 59 of file xrange.hh.

◆ operator++() [2/2]

template<typename T >
XRangeIter XRange< T >::XRangeIter::operator++ ( int  )
inline

Definition at line 64 of file xrange.hh.

References ranges::copy().

◆ operator+=()

template<typename T >
XRangeIter& XRange< T >::XRangeIter::operator+= ( difference_type  n)
inline

Definition at line 94 of file xrange.hh.

◆ operator--() [1/2]

template<typename T >
XRangeIter& XRange< T >::XRangeIter::operator-- ( )
inline

Definition at line 81 of file xrange.hh.

◆ operator--() [2/2]

template<typename T >
XRangeIter XRange< T >::XRangeIter::operator-- ( int  )
inline

Definition at line 86 of file xrange.hh.

References ranges::copy().

◆ operator-=()

template<typename T >
XRangeIter& XRange< T >::XRangeIter::operator-= ( difference_type  n)
inline

Definition at line 99 of file xrange.hh.

◆ operator==()

template<typename T >
bool XRange< T >::XRangeIter::operator== ( const XRangeIter other) const
inline

Definition at line 71 of file xrange.hh.

◆ operator[]()

template<typename T >
T XRange< T >::XRangeIter::operator[] ( difference_type  n)
inline

Definition at line 126 of file xrange.hh.

Friends And Related Function Documentation

◆ operator+ [1/2]

template<typename T >
XRangeIter operator+ ( difference_type  n,
XRangeIter  i 
)
friend

Definition at line 110 of file xrange.hh.

◆ operator+ [2/2]

template<typename T >
XRangeIter operator+ ( XRangeIter  i,
difference_type  n 
)
friend

Definition at line 105 of file xrange.hh.

◆ operator- [1/2]

template<typename T >
difference_type operator- ( const XRangeIter i,
const XRangeIter j 
)
friend

Definition at line 121 of file xrange.hh.

◆ operator- [2/2]

template<typename T >
XRangeIter operator- ( XRangeIter  i,
difference_type  n 
)
friend

Definition at line 115 of file xrange.hh.

◆ operator<

template<typename T >
bool operator< ( const XRangeIter i,
const XRangeIter j 
)
friend

Definition at line 131 of file xrange.hh.

◆ operator<=

template<typename T >
bool operator<= ( const XRangeIter i,
const XRangeIter j 
)
friend

Definition at line 135 of file xrange.hh.

◆ operator>

template<typename T >
bool operator> ( const XRangeIter i,
const XRangeIter j 
)
friend

Definition at line 139 of file xrange.hh.

◆ operator>=

template<typename T >
bool operator>= ( const XRangeIter i,
const XRangeIter j 
)
friend

Definition at line 143 of file xrange.hh.


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