ROOT
6.07/01
Reference Guide
|
A pseudo container class which is a generator of indices.
T | Type of the numerical sequence. |
A pseudo container class which is a generator of indices. The model is the xrange
built-in function of Python. Possible usages: Loop on a sequence of integers
Loop on a sequence of integers in steps
Loop backwards on a sequence of integers
Use an stl algorithm, for_each
Random access:
A function to create sequences inferring the type:
Classes | |
class | iterator |
Public Types | |
using | value_type = T |
using | difference_type = typename std::make_signed< T >::type |
Public Member Functions | |
TSeq (T end) | |
TSeq (T begin, T end, T step=1) | |
iterator | begin () const |
iterator | end () const |
T const & | front () const |
T | operator[] (T s) const |
std::size_t | size () const |
T | step () const |
bool | empty () const |
Private Member Functions | |
void | checkIntegralType () |
Private Attributes | |
const T | fBegin |
const T | fEnd |
const T | fStep |
#include <ROOT/TSeq.h>
using ROOT::TSeq< T >::difference_type = typename std::make_signed<T>::type |
using ROOT::TSeq< T >::value_type = T |
|
inline |
Definition at line 116 of file TSeq.h.
Referenced by cling::printValue(), and ROOT::TSeq< T >::size().
|
inlineprivate |
Definition at line 57 of file TSeq.h.
Referenced by ROOT::TSeq< T >::TSeq().
|
inline |
|
inline |
Definition at line 119 of file TSeq.h.
Referenced by cling::printValue(), and ROOT::TSeq< T >::size().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 137 of file TSeq.h.
Referenced by cling::printValue().
|
private |
Definition at line 60 of file TSeq.h.
Referenced by ROOT::TSeq< T >::begin(), ROOT::TSeq< T >::empty(), ROOT::TSeq< T >::end(), ROOT::TSeq< T >::front(), and ROOT::TSeq< T >::operator[]().
|
private |
Definition at line 61 of file TSeq.h.
Referenced by ROOT::TSeq< T >::empty(), and ROOT::TSeq< T >::end().
|
private |
Definition at line 62 of file TSeq.h.
Referenced by ROOT::TSeq< T >::begin(), ROOT::TSeq< T >::end(), ROOT::TSeq< T >::operator[](), and ROOT::TSeq< T >::step().