ATLAS Offline Software
Loading...
Searching...
No Matches
ROBData_T< ROBFragment, PointerType >::iterator Class Reference

This class defines how to iterate over the ROBData_T, in different formats. More...

#include <ROBData.h>

Collaboration diagram for ROBData_T< ROBFragment, PointerType >::iterator:

Public Member Functions

 iterator (const iterator &other)
 Copy Constructor.
iteratoroperator= (const iterator &other)
 Assignment Operator.
uint32_t operator* ()
 Dereferencing.
iteratoroperator+= (const unsigned int &pos)
 winding.
iteratoroperator++ ()
 Increment.
bool operator!= (const iterator &other) const
 Is not equal.

Private Member Functions

 iterator (const PointerType &it)
 The sole constructor was made private.

Private Attributes

PointerType m_it
 iterator

Friends

class ROBData_T< ROBFragment, PointerType >

Detailed Description

template<typename ROBFragment, typename PointerType>
class ROBData_T< ROBFragment, PointerType >::iterator

This class defines how to iterate over the ROBData_T, in different formats.

Definition at line 88 of file ROBData.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<class ROBFragment, typename PointerType>
ROBData_T< ROBFragment, PointerType >::iterator::iterator ( const PointerType & it)
private

The sole constructor was made private.

Only a call to ROBData_T::begin() can instantiate an iterator.

Parameters
rod_itThe underlying RODFragment iterator to use.

Definition at line 189 of file ROBData.h.

189 : m_it(it) {
190}
PointerType m_it
iterator
Definition ROBData.h:126
template data class to wrap ROB fragment for accessing ROD data
Definition ROBData.h:46

◆ iterator() [2/2]

template<typename ROBFragment, typename PointerType>
ROBData_T< ROBFragment, PointerType >::iterator::iterator ( const iterator & other)

Copy Constructor.

Member Function Documentation

◆ operator!=()

template<typename ROBFragment, typename PointerType>
bool ROBData_T< ROBFragment, PointerType >::iterator::operator!= ( const iterator & other) const

Is not equal.

Definition at line 221 of file ROBData.h.

221 {
222 return m_it != other.m_it;
223}

◆ operator*()

template<class ROBFragment, typename PointerType>
uint32_t ROBData_T< ROBFragment, PointerType >::iterator::operator* ( )

Dereferencing.

Definition at line 204 of file ROBData.h.

204 {
205 return *m_it;
206}

◆ operator++()

template<class ROBFragment, typename PointerType>
ROBData_T< ROBFragment, PointerType >::iterator & ROBData_T< ROBFragment, PointerType >::iterator::operator++ ( )

Increment.

Definition at line 215 of file ROBData.h.

215 {
216 ++m_it;
217 return *this;
218}

◆ operator+=()

template<class ROBFragment, typename PointerType>
ROBData_T< ROBFragment, PointerType >::iterator & ROBData_T< ROBFragment, PointerType >::iterator::operator+= ( const unsigned int & pos)

winding.

This method will advance the iterator pos 32-bit words.

Parameters
posHow many positions to advance.

Definition at line 209 of file ROBData.h.

209 {
210 m_it += pos;
211 return *this;
212}

◆ operator=()

template<typename ROBFragment, typename PointerType>
ROBData_T< ROBFragment, PointerType >::iterator & ROBData_T< ROBFragment, PointerType >::iterator::operator= ( const iterator & other)

Assignment Operator.

Definition at line 198 of file ROBData.h.

198 {
199 m_it = other.m_it;
200 return *this;
201}

◆ ROBData_T< ROBFragment, PointerType >

template<typename ROBFragment, typename PointerType>
friend class ROBData_T< ROBFragment, PointerType >
friend

Definition at line 122 of file ROBData.h.

Member Data Documentation

◆ m_it

template<typename ROBFragment, typename PointerType>
PointerType ROBData_T< ROBFragment, PointerType >::iterator::m_it
private

iterator

Definition at line 126 of file ROBData.h.


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