ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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. More...
 
iteratoroperator= (const iterator &other)
 Assignment Operator. More...
 
uint32_t operator* (void)
 Dereferencing. More...
 
iteratoroperator+= (const unsigned int &pos)
 winding. More...
 
iteratoroperator++ (void)
 Increment. More...
 
bool operator!= (const iterator &other) const
 Is not equal. More...
 

Private Member Functions

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

Private Attributes

PointerType m_it
 iterator More...
 

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 }

◆ 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* ( void  )

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++ ( void  )

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 }

Friends And Related Function Documentation

◆ 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:
skel.it
it
Definition: skel.GENtoEVGEN.py:396
ROBData_T::iterator::m_it
PointerType m_it
iterator
Definition: ROBData.h:126
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16