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

an iterator class working on position within the a parent class More...

#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, size_t position=0, size_t size=0)
 
 ~Iterator ()=default
 
SelfTypeoperator++ ()
 
SelfType operator++ (int)
 
reference operator* () const
 
bool operator== (const SelfType &rh) const
 
bool 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 class working on position within the a parent class

Definition at line 87 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 96 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 97 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 92 of file InputSpan.h.

◆ ParentType

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

Definition at line 90 of file InputSpan.h.

◆ pointer

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

Definition at line 95 of file InputSpan.h.

◆ reference

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

Definition at line 94 of file InputSpan.h.

◆ SelfType

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

Definition at line 91 of file InputSpan.h.

◆ value_type

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

Definition at line 93 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,
size_t  position = 0,
size_t  size = 0 
)
inline

Definition at line 101 of file InputSpan.h.

◆ ~Iterator()

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

Member Function Documentation

◆ operator!=()

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

Definition at line 143 of file InputSpan.h.

◆ operator*()

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

Definition at line 131 of file InputSpan.h.

◆ operator++() [1/2]

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

Definition at line 112 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 123 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 137 of file InputSpan.h.

◆ parent()

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

Definition at line 149 of file InputSpan.h.

◆ position()

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

Definition at line 155 of file InputSpan.h.


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