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 86 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 95 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 93 of file TSeq.hxx.

◆ iterator_category

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

Definition at line 91 of file TSeq.hxx.

◆ pointer

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

Definition at line 94 of file TSeq.hxx.

◆ reference

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

Definition at line 96 of file TSeq.hxx.

◆ value_type

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

Definition at line 92 of file TSeq.hxx.

Constructor & Destructor Documentation

◆ iterator()

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

Definition at line 98 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 107 of file TSeq.hxx.

◆ operator*()

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

Definition at line 99 of file TSeq.hxx.

◆ operator+()

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

Definition at line 111 of file TSeq.hxx.

◆ operator++() [1/2]

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

Definition at line 123 of file TSeq.hxx.

◆ operator++() [2/2]

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

Definition at line 127 of file TSeq.hxx.

◆ operator+=()

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

Definition at line 143 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 119 of file TSeq.hxx.

◆ operator-() [2/2]

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

Definition at line 115 of file TSeq.hxx.

◆ operator--() [1/2]

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

Definition at line 133 of file TSeq.hxx.

◆ operator--() [2/2]

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

Definition at line 137 of file TSeq.hxx.

◆ operator-=()

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

Definition at line 147 of file TSeq.hxx.

◆ operator<()

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

Definition at line 152 of file TSeq.hxx.

◆ operator<=()

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

Definition at line 158 of file TSeq.hxx.

◆ operator==()

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

Definition at line 103 of file TSeq.hxx.

◆ operator>()

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

Definition at line 155 of file TSeq.hxx.

◆ operator>=()

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

Definition at line 161 of file TSeq.hxx.

◆ operator[]()

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

Definition at line 165 of file TSeq.hxx.

Member Data Documentation

◆ fCounter

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

Definition at line 88 of file TSeq.hxx.

◆ fStep

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

Definition at line 89 of file TSeq.hxx.

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