Project
Loading...
Searching...
No Matches
o2::framework::InputSpan::Iterator< ParentT, T > Class Template Reference

#include <InputSpan.h>

Public Types

using ParentType = ParentT
 
using SelfType = Iterator
 
using iterator_category = std::forward_iterator_tag
 
using value_type = T
 
using reference = T &
 
using pointer = T *
 
using difference_type = std::ptrdiff_t
 
using ElementType = typename std::remove_const< value_type >::type
 

Public Member Functions

 Iterator ()=delete
 
 Iterator (ParentType const *parent, bool isEnd=false)
 
SelfTypeoperator++ ()
 
SelfType operator++ (int)
 
reference operator* () const
 
bool operator== (const SelfType &rh) const
 
auto operator<=> (const SelfType &rh) const
 
ParentType const * parent () const
 
size_t position () const
 

Detailed Description

template<typename ParentT, typename T>
class o2::framework::InputSpan::Iterator< ParentT, T >

An iterator over the elements of a parent container using the DataRefIndices protocol. ParentT must provide: initialIndices(), getAtIndices(DataRefIndices), nextIndices(DataRefIndices).

Definition at line 111 of file InputSpan.h.

Member Typedef Documentation

◆ difference_type

template<typename ParentT , typename T >
using o2::framework::InputSpan::Iterator< ParentT, T >::difference_type = std::ptrdiff_t

Definition at line 120 of file InputSpan.h.

◆ ElementType

template<typename ParentT , typename T >
using o2::framework::InputSpan::Iterator< ParentT, T >::ElementType = typename std::remove_const<value_type>::type

Definition at line 121 of file InputSpan.h.

◆ iterator_category

template<typename ParentT , typename T >
using o2::framework::InputSpan::Iterator< ParentT, T >::iterator_category = std::forward_iterator_tag

Definition at line 116 of file InputSpan.h.

◆ ParentType

template<typename ParentT , typename T >
using o2::framework::InputSpan::Iterator< ParentT, T >::ParentType = ParentT

Definition at line 114 of file InputSpan.h.

◆ pointer

template<typename ParentT , typename T >
using o2::framework::InputSpan::Iterator< ParentT, T >::pointer = T*

Definition at line 119 of file InputSpan.h.

◆ reference

template<typename ParentT , typename T >
using o2::framework::InputSpan::Iterator< ParentT, T >::reference = T&

Definition at line 118 of file InputSpan.h.

◆ SelfType

template<typename ParentT , typename T >
using o2::framework::InputSpan::Iterator< ParentT, T >::SelfType = Iterator

Definition at line 115 of file InputSpan.h.

◆ value_type

template<typename ParentT , typename T >
using o2::framework::InputSpan::Iterator< ParentT, T >::value_type = T

Definition at line 117 of file InputSpan.h.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<typename ParentT , typename T >
o2::framework::InputSpan::Iterator< ParentT, T >::Iterator ( )
delete

◆ Iterator() [2/2]

template<typename ParentT , typename T >
o2::framework::InputSpan::Iterator< ParentT, T >::Iterator ( ParentType const *  parent,
bool  isEnd = false 
)
inline

Definition at line 125 of file InputSpan.h.

Member Function Documentation

◆ operator*()

template<typename ParentT , typename T >
reference o2::framework::InputSpan::Iterator< ParentT, T >::operator* ( ) const
inline

Definition at line 155 of file InputSpan.h.

◆ operator++() [1/2]

template<typename ParentT , typename T >
SelfType & o2::framework::InputSpan::Iterator< ParentT, T >::operator++ ( )
inline

Definition at line 136 of file InputSpan.h.

◆ operator++() [2/2]

template<typename ParentT , typename T >
SelfType o2::framework::InputSpan::Iterator< ParentT, T >::operator++ ( int  )
inline

Definition at line 147 of file InputSpan.h.

◆ operator<=>()

template<typename ParentT , typename T >
auto o2::framework::InputSpan::Iterator< ParentT, T >::operator<=> ( const SelfType rh) const
inline

Definition at line 165 of file InputSpan.h.

◆ operator==()

template<typename ParentT , typename T >
bool o2::framework::InputSpan::Iterator< ParentT, T >::operator== ( const SelfType rh) const
inline

Definition at line 160 of file InputSpan.h.

◆ parent()

template<typename ParentT , typename T >
ParentType const * o2::framework::InputSpan::Iterator< ParentT, T >::parent ( ) const
inline

Definition at line 171 of file InputSpan.h.

◆ position()

template<typename ParentT , typename T >
size_t o2::framework::InputSpan::Iterator< ParentT, T >::position ( ) const
inline

Definition at line 177 of file InputSpan.h.


The documentation for this class was generated from the following file: