ATLAS Offline Software
|
utility class that acts wraps a bidirectional iterator. More...
#include <RangedItr.h>
Public Types | |
using | iterator_category = std::bidirectional_iterator_tag |
using | value_type = typename tr::value_type |
using | reference = typename tr::reference |
using | pointer = typename tr::pointer |
using | difference_type = typename tr::difference_type |
Public Member Functions | |
RangedItr ()=default | |
Default Constructor. More... | |
RangedItr (const T &begin, const T &end) | |
Construct from a beginning and an end. More... | |
RangedItr (const T &begin, const T &end, const T &position) | |
Construct from a beginning, an end and a starting position. More... | |
reference | operator* () |
Iterator interface. More... | |
pointer | operator-> () |
RangedItr & | operator++ () |
RangedItr | operator++ (int) |
RangedItr & | operator-- () |
RangedItr | operator-- (int) |
bool | operator== (const RangedItr &other) |
bool | operator!= (const RangedItr &other) |
bool | exhausted () const |
Is this iterator exhausted? More... | |
void | restart () |
Reset this iterator to its start. More... | |
RangedItr | begin () const |
Make this act as a range. More... | |
RangedItr | end () const |
difference_type | size () const |
operator T () const | |
Allow conversion back to the original iterator type. More... | |
Protected Types | |
using | tr = std::iterator_traits< T > |
Private Attributes | |
T | m_begin |
T | m_end |
T | m_position |
utility class that acts wraps a bidirectional iterator.
This class acts as both and range and an iterator.
Definition at line 18 of file RangedItr.h.
using DerivationFramework::TriggerMatchingUtils::RangedItr< T >::difference_type = typename tr::difference_type |
Definition at line 30 of file RangedItr.h.
using DerivationFramework::TriggerMatchingUtils::RangedItr< T >::iterator_category = std::bidirectional_iterator_tag |
Definition at line 26 of file RangedItr.h.
using DerivationFramework::TriggerMatchingUtils::RangedItr< T >::pointer = typename tr::pointer |
Definition at line 29 of file RangedItr.h.
using DerivationFramework::TriggerMatchingUtils::RangedItr< T >::reference = typename tr::reference |
Definition at line 28 of file RangedItr.h.
|
protected |
Definition at line 20 of file RangedItr.h.
using DerivationFramework::TriggerMatchingUtils::RangedItr< T >::value_type = typename tr::value_type |
Definition at line 27 of file RangedItr.h.
|
default |
Default Constructor.
|
inline |
|
inline |
Construct from a beginning, an end and a starting position.
Definition at line 40 of file RangedItr.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 73 of file RangedItr.h.
|
inline |
|
inline |
Definition at line 47 of file RangedItr.h.
|
inline |
Definition at line 51 of file RangedItr.h.
|
inline |
Definition at line 57 of file RangedItr.h.
|
inline |
Definition at line 61 of file RangedItr.h.
|
inline |
Definition at line 45 of file RangedItr.h.
|
inline |
Definition at line 67 of file RangedItr.h.
|
inline |
|
inline |
Definition at line 86 of file RangedItr.h.
|
private |
Definition at line 91 of file RangedItr.h.
|
private |
Definition at line 92 of file RangedItr.h.
|
private |
Definition at line 93 of file RangedItr.h.