Random access iterator to the elements of a TTreeReaderArray.
Definition at line 111 of file TTreeReaderArray.h.
Public Types | |
| using | difference_type = std::ptrdiff_t |
| using | iterator_category = std::random_access_iterator_tag |
| using | pointer = std::conditional_t<std::is_const<ReaderArrayType>::value, const T *, T *> |
| using | reference = std::conditional_t<std::is_const<ReaderArrayType>::value, const T &, T &> |
| using | value_type = T |
Public Member Functions | |
| Iterator_t () | |
| Default ctor: constructs a past-the-end iterator. | |
| Iterator_t (const Iterator_t &)=default | |
| Iterator_t (Iterator_t &&)=default | |
| Iterator_t (std::size_t index, const TTreeReaderArray *array) | |
| Construct iterator from a const TTreeReaderArray. | |
| Iterator_t (std::size_t index, TTreeReaderArray *array) | |
| Construct iterator. | |
| bool | IsValid () const |
| operator pointer () | |
| bool | operator!= (const Iterator_t &other) const |
| reference | operator* () const |
| Iterator_t | operator+ (std::ptrdiff_t n) const |
| Iterator_t & | operator++ () |
| Pre-increment operator. | |
| Iterator_t | operator++ (int) |
| Post-increment operator. | |
| Iterator_t & | operator+= (std::ptrdiff_t n) |
| std::ptrdiff_t | operator- (const Iterator_t &other) const |
| Iterator_t | operator- (std::ptrdiff_t n) const |
| Iterator_t & | operator-- () |
| Pre-decrement operator. | |
| Iterator_t | operator-- (int) |
| Post-decrement operator. | |
| Iterator_t & | operator-= (std::ptrdiff_t n) |
| pointer | operator-> () const |
| bool | operator< (const Iterator_t &other) const |
| bool | operator<= (const Iterator_t &other) const |
| Iterator_t & | operator= (const Iterator_t &)=default |
| Iterator_t & | operator= (Iterator_t &&)=default |
| bool | operator== (const Iterator_t &other) const |
| bool | operator> (const Iterator_t &other) const |
| bool | operator>= (const Iterator_t &other) const |
| reference | operator[] (std::size_t index) const |
Private Attributes | |
| TTreeReaderArray * | fArray |
| The array iterated over; nullptr if invalid/past-the-end. | |
| std::size_t | fIndex |
| Current index in the array. | |
| std::size_t | fSize |
| Size of the TTreeReaderArray. | |
Friends | |
| auto | operator+ (std::ptrdiff_t n, const Iterator_t &it) -> decltype(it+n) |
#include <TTreeReaderArray.h>
| using TTreeReaderArray< T >::Iterator_t< ReaderArrayType >::difference_type = std::ptrdiff_t |
Definition at line 116 of file TTreeReaderArray.h.
| using TTreeReaderArray< T >::Iterator_t< ReaderArrayType >::iterator_category = std::random_access_iterator_tag |
Definition at line 114 of file TTreeReaderArray.h.
| using TTreeReaderArray< T >::Iterator_t< ReaderArrayType >::pointer = std::conditional_t<std::is_const<ReaderArrayType>::value, const T *, T *> |
Definition at line 117 of file TTreeReaderArray.h.
| using TTreeReaderArray< T >::Iterator_t< ReaderArrayType >::reference = std::conditional_t<std::is_const<ReaderArrayType>::value, const T &, T &> |
Definition at line 118 of file TTreeReaderArray.h.
| using TTreeReaderArray< T >::Iterator_t< ReaderArrayType >::value_type = T |
Definition at line 115 of file TTreeReaderArray.h.
|
inline |
Default ctor: constructs a past-the-end iterator.
Definition at line 126 of file TTreeReaderArray.h.
|
inline |
Construct iterator.
Definition at line 129 of file TTreeReaderArray.h.
|
inline |
Construct iterator from a const TTreeReaderArray.
Definition at line 137 of file TTreeReaderArray.h.
|
default |
|
default |
|
inline |
Definition at line 226 of file TTreeReaderArray.h.
|
inline |
Definition at line 224 of file TTreeReaderArray.h.
|
inline |
Definition at line 163 of file TTreeReaderArray.h.
|
inline |
Definition at line 147 of file TTreeReaderArray.h.
|
inline |
Definition at line 201 of file TTreeReaderArray.h.
|
inline |
Pre-increment operator.
Definition at line 166 of file TTreeReaderArray.h.
|
inline |
Post-increment operator.
Definition at line 176 of file TTreeReaderArray.h.
|
inline |
Definition at line 213 of file TTreeReaderArray.h.
|
inline |
Definition at line 211 of file TTreeReaderArray.h.
|
inline |
Definition at line 204 of file TTreeReaderArray.h.
|
inline |
Pre-decrement operator.
Definition at line 184 of file TTreeReaderArray.h.
|
inline |
Post-decrement operator.
Definition at line 194 of file TTreeReaderArray.h.
|
inline |
Definition at line 215 of file TTreeReaderArray.h.
|
inline |
Definition at line 153 of file TTreeReaderArray.h.
|
inline |
Definition at line 217 of file TTreeReaderArray.h.
|
inline |
Definition at line 219 of file TTreeReaderArray.h.
|
default |
|
default |
|
inline |
Definition at line 155 of file TTreeReaderArray.h.
|
inline |
Definition at line 218 of file TTreeReaderArray.h.
|
inline |
Definition at line 220 of file TTreeReaderArray.h.
|
inline |
Definition at line 222 of file TTreeReaderArray.h.
|
friend |
Definition at line 202 of file TTreeReaderArray.h.
|
private |
The array iterated over; nullptr if invalid/past-the-end.
Definition at line 121 of file TTreeReaderArray.h.
|
private |
Current index in the array.
Definition at line 122 of file TTreeReaderArray.h.
|
private |
Size of the TTreeReaderArray.
Definition at line 123 of file TTreeReaderArray.h.