Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::TSeq< T >::iterator Class Reference

template<class T>
class ROOT::TSeq< T >::iterator

Definition at line 88 of file TSeq.hxx.

Public Types

using const_pointer = const T *
 
using difference_type = typename std::make_signed< T >::type
 
using iterator_category = std::random_access_iterator_tag
 
using pointer = T *
 
using reference = T &
 
using value_type = T
 

Public Member Functions

 iterator (T start, T step)
 
bool operator!= (const iterator &other) const
 
operator* () const
 
iterator operator+ (difference_type v) const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator+= (const difference_type &v)
 
difference_type operator- (const iterator &other) const
 
iterator operator- (difference_type v) const
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iteratoroperator-= (const difference_type &v)
 
bool operator< (const iterator &other) const
 
bool operator<= (const iterator &other) const
 
bool operator== (const iterator &other) const
 
bool operator> (const iterator &other) const
 
bool operator>= (const iterator &other) const
 
const T operator[] (const difference_type &v) const
 

Private Attributes

fCounter
 
fStep
 

#include <ROOT/TSeq.hxx>

Member Typedef Documentation

◆ const_pointer

template<class T >
using ROOT::TSeq< T >::iterator::const_pointer = const T *

Definition at line 97 of file TSeq.hxx.

◆ difference_type

template<class T >
using ROOT::TSeq< T >::iterator::difference_type = typename std::make_signed<T>::type

Definition at line 95 of file TSeq.hxx.

◆ iterator_category

template<class T >
using ROOT::TSeq< T >::iterator::iterator_category = std::random_access_iterator_tag

Definition at line 93 of file TSeq.hxx.

◆ pointer

template<class T >
using ROOT::TSeq< T >::iterator::pointer = T *

Definition at line 96 of file TSeq.hxx.

◆ reference

template<class T >
using ROOT::TSeq< T >::iterator::reference = T &

Definition at line 98 of file TSeq.hxx.

◆ value_type

template<class T >
using ROOT::TSeq< T >::iterator::value_type = T

Definition at line 94 of file TSeq.hxx.

Constructor & Destructor Documentation

◆ iterator()

template<class T >
ROOT::TSeq< T >::iterator::iterator ( start,
step 
)
inline

Definition at line 100 of file TSeq.hxx.

Member Function Documentation

◆ operator!=()

template<class T >
bool ROOT::TSeq< T >::iterator::operator!= ( const iterator other) const
inline

Definition at line 109 of file TSeq.hxx.

◆ operator*()

template<class T >
T ROOT::TSeq< T >::iterator::operator* ( ) const
inline

Definition at line 101 of file TSeq.hxx.

◆ operator+()

template<class T >
iterator ROOT::TSeq< T >::iterator::operator+ ( difference_type  v) const
inline

Definition at line 113 of file TSeq.hxx.

◆ operator++() [1/2]

template<class T >
iterator & ROOT::TSeq< T >::iterator::operator++ ( )
inline

Definition at line 125 of file TSeq.hxx.

◆ operator++() [2/2]

template<class T >
iterator ROOT::TSeq< T >::iterator::operator++ ( int  )
inline

Definition at line 129 of file TSeq.hxx.

◆ operator+=()

template<class T >
iterator & ROOT::TSeq< T >::iterator::operator+= ( const difference_type v)
inline

Definition at line 145 of file TSeq.hxx.

◆ operator-() [1/2]

template<class T >
difference_type ROOT::TSeq< T >::iterator::operator- ( const iterator other) const
inline

Definition at line 121 of file TSeq.hxx.

◆ operator-() [2/2]

template<class T >
iterator ROOT::TSeq< T >::iterator::operator- ( difference_type  v) const
inline

Definition at line 117 of file TSeq.hxx.

◆ operator--() [1/2]

template<class T >
iterator & ROOT::TSeq< T >::iterator::operator-- ( )
inline

Definition at line 135 of file TSeq.hxx.

◆ operator--() [2/2]

template<class T >
iterator ROOT::TSeq< T >::iterator::operator-- ( int  )
inline

Definition at line 139 of file TSeq.hxx.

◆ operator-=()

template<class T >
iterator & ROOT::TSeq< T >::iterator::operator-= ( const difference_type v)
inline

Definition at line 149 of file TSeq.hxx.

◆ operator<()

template<class T >
bool ROOT::TSeq< T >::iterator::operator< ( const iterator other) const
inline

Definition at line 154 of file TSeq.hxx.

◆ operator<=()

template<class T >
bool ROOT::TSeq< T >::iterator::operator<= ( const iterator other) const
inline

Definition at line 160 of file TSeq.hxx.

◆ operator==()

template<class T >
bool ROOT::TSeq< T >::iterator::operator== ( const iterator other) const
inline

Definition at line 105 of file TSeq.hxx.

◆ operator>()

template<class T >
bool ROOT::TSeq< T >::iterator::operator> ( const iterator other) const
inline

Definition at line 157 of file TSeq.hxx.

◆ operator>=()

template<class T >
bool ROOT::TSeq< T >::iterator::operator>= ( const iterator other) const
inline

Definition at line 163 of file TSeq.hxx.

◆ operator[]()

template<class T >
const T ROOT::TSeq< T >::iterator::operator[] ( const difference_type v) const
inline

Definition at line 167 of file TSeq.hxx.

Member Data Documentation

◆ fCounter

template<class T >
T ROOT::TSeq< T >::iterator::fCounter
private

Definition at line 90 of file TSeq.hxx.

◆ fStep

template<class T >
T ROOT::TSeq< T >::iterator::fStep
private

Definition at line 91 of file TSeq.hxx.

  • core/cont/inc/ROOT/TSeq.hxx