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

#include <InputSpan.h>

Inherits o2::framework::InputSpan::Iterator< InputSpan, T >.

Public Types

using SelfType = InputSpanIterator
 
using BaseType = Iterator< InputSpan, T >
 
using value_type = typename BaseType::value_type
 
using reference = typename BaseType::reference
 
using pointer = typename BaseType::pointer
 
using ElementType = typename std::remove_const< value_type >::type
 
using iterator = Iterator< SelfType, T >
 
using const_iterator = Iterator< SelfType, const T >
 
- Public Types inherited from o2::framework::InputSpan::Iterator< InputSpan, T >
using ParentType = InputSpan
 
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

 InputSpanIterator (InputSpan const *parent, size_t position=0, size_t size=0)
 
ElementType get (size_t pos) const
 Get element at {slotindex, partindex}.
 
bool isValid (size_t=0) const
 Check if slot is valid, index of part is not used.
 
size_t size () const
 Get number of parts in input slot.
 
const_iterator begin () const
 
const_iterator end () const
 
- Public Member Functions inherited from o2::framework::InputSpan::Iterator< InputSpan, T >
 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 T>
class o2::framework::InputSpan::InputSpanIterator< T >

An iterator over the input slots It supports an iterator interface to access the parts in the slot

Definition at line 171 of file InputSpan.h.

Member Typedef Documentation

◆ BaseType

template<typename T >
using o2::framework::InputSpan::InputSpanIterator< T >::BaseType = Iterator<InputSpan, T>

Definition at line 175 of file InputSpan.h.

◆ const_iterator

template<typename T >
using o2::framework::InputSpan::InputSpanIterator< T >::const_iterator = Iterator<SelfType, const T>

Definition at line 181 of file InputSpan.h.

◆ ElementType

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

Definition at line 179 of file InputSpan.h.

◆ iterator

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

Definition at line 180 of file InputSpan.h.

◆ pointer

template<typename T >
using o2::framework::InputSpan::InputSpanIterator< T >::pointer = typename BaseType::pointer

Definition at line 178 of file InputSpan.h.

◆ reference

Definition at line 177 of file InputSpan.h.

◆ SelfType

template<typename T >
using o2::framework::InputSpan::InputSpanIterator< T >::SelfType = InputSpanIterator

Definition at line 174 of file InputSpan.h.

◆ value_type

template<typename T >
using o2::framework::InputSpan::InputSpanIterator< T >::value_type = typename BaseType::value_type

Definition at line 176 of file InputSpan.h.

Constructor & Destructor Documentation

◆ InputSpanIterator()

template<typename T >
o2::framework::InputSpan::InputSpanIterator< T >::InputSpanIterator ( InputSpan const *  parent,
size_t  position = 0,
size_t  size = 0 
)
inline

Definition at line 183 of file InputSpan.h.

Member Function Documentation

◆ begin()

template<typename T >
const_iterator o2::framework::InputSpan::InputSpanIterator< T >::begin ( ) const
inline

Definition at line 210 of file InputSpan.h.

◆ end()

template<typename T >
const_iterator o2::framework::InputSpan::InputSpanIterator< T >::end ( ) const
inline

Definition at line 215 of file InputSpan.h.

◆ get()

template<typename T >
ElementType o2::framework::InputSpan::InputSpanIterator< T >::get ( size_t  pos) const
inline

Get element at {slotindex, partindex}.

Definition at line 189 of file InputSpan.h.

◆ isValid()

template<typename T >
bool o2::framework::InputSpan::InputSpanIterator< T >::isValid ( size_t  = 0) const
inline

Check if slot is valid, index of part is not used.

Definition at line 195 of file InputSpan.h.

◆ size()

template<typename T >
size_t o2::framework::InputSpan::InputSpanIterator< T >::size ( ) const
inline

Get number of parts in input slot.

Definition at line 204 of file InputSpan.h.


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