ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
IdentifiableContainerMT< T >::const_iterator Class Reference

#include <IdentifiableContainerMT.h>

Collaboration diagram for IdentifiableContainerMT< T >::const_iterator:

Public Member Functions

 const_iterator ()
 iterator constructor More...
 
 const_iterator (const_iterator &&)=default
 
 const_iterator (const const_iterator &)=default
 
const_iteratoroperator= (const const_iterator &)=default
 
const_iteratoroperator= (const_iterator &&)=default
 
 ~const_iterator ()=default
 
const_iteratoroperator++ ()
 increment operator More...
 
const_iterator operator++ (int)
 increment operator More...
 
const T * cptr () const
 
const T * operator* () const
 
const T * operator-> () const
 
bool operator!= (const const_iterator &it) const
 comparison operator More...
 
bool operator== (const const_iterator &it) const
 comparison operator More...
 
IdentifierHash hashId () const
 hashId of the pointed-to element More...
 

Protected Member Functions

 const_iterator (EventContainers::I_InternalIDC::InternalConstItr itr)
 

Protected Attributes

EventContainers::I_InternalIDC::InternalConstItr m_itr
 

Friends

class IdentifiableContainerMT< T >
 

Detailed Description

template<class T>
class IdentifiableContainerMT< T >::const_iterator

Definition at line 81 of file IdentifiableContainerMT.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/4]

template<class T >
IdentifiableContainerMT< T >::const_iterator::const_iterator ( )
inline

iterator constructor

Definition at line 87 of file IdentifiableContainerMT.h.

87 : m_itr() {}

◆ const_iterator() [2/4]

template<class T >
IdentifiableContainerMT< T >::const_iterator::const_iterator ( const_iterator &&  )
default

◆ const_iterator() [3/4]

template<class T >
IdentifiableContainerMT< T >::const_iterator::const_iterator ( const const_iterator )
default

◆ ~const_iterator()

template<class T >
IdentifiableContainerMT< T >::const_iterator::~const_iterator ( )
default

◆ const_iterator() [4/4]

template<class T >
IdentifiableContainerMT< T >::const_iterator::const_iterator ( EventContainers::I_InternalIDC::InternalConstItr  itr)
inlineprotected

Definition at line 137 of file IdentifiableContainerMT.h.

137 : m_itr(std::move(itr)) {}

Member Function Documentation

◆ cptr()

template<class T >
const T* IdentifiableContainerMT< T >::const_iterator::cptr ( ) const
inline

Definition at line 108 of file IdentifiableContainerMT.h.

108  {
109  return reinterpret_cast<const T*>( m_itr->second );
110  }

◆ hashId()

template<class T >
IdentifierHash IdentifiableContainerMT< T >::const_iterator::hashId ( ) const
inline

hashId of the pointed-to element

Definition at line 130 of file IdentifiableContainerMT.h.

130  {
131  return m_itr->first;
132  }

◆ operator!=()

template<class T >
bool IdentifiableContainerMT< T >::const_iterator::operator!= ( const const_iterator it) const
inline

comparison operator

Definition at line 119 of file IdentifiableContainerMT.h.

119  {
120  return m_itr!= it.m_itr;
121  }

◆ operator*()

template<class T >
const T* IdentifiableContainerMT< T >::const_iterator::operator* ( ) const
inline

Definition at line 112 of file IdentifiableContainerMT.h.

112  {
113  return reinterpret_cast<const T*>( m_itr->second );
114  }

◆ operator++() [1/2]

template<class T >
const_iterator& IdentifiableContainerMT< T >::const_iterator::operator++ ( )
inline

increment operator

Definition at line 96 of file IdentifiableContainerMT.h.

96  {
97  ++m_itr;
98  return *this;
99  }

◆ operator++() [2/2]

template<class T >
const_iterator IdentifiableContainerMT< T >::const_iterator::operator++ ( int  )
inline

increment operator

Definition at line 102 of file IdentifiableContainerMT.h.

102  {
103  const_iterator tmp = *this;
104  ++*this;
105  return tmp;
106  }

◆ operator->()

template<class T >
const T* IdentifiableContainerMT< T >::const_iterator::operator-> ( ) const
inline

Definition at line 116 of file IdentifiableContainerMT.h.

116 { return (operator*()); }

◆ operator=() [1/2]

template<class T >
const_iterator& IdentifiableContainerMT< T >::const_iterator::operator= ( const const_iterator )
default

◆ operator=() [2/2]

template<class T >
const_iterator& IdentifiableContainerMT< T >::const_iterator::operator= ( const_iterator &&  )
default

◆ operator==()

template<class T >
bool IdentifiableContainerMT< T >::const_iterator::operator== ( const const_iterator it) const
inline

comparison operator

Definition at line 124 of file IdentifiableContainerMT.h.

124  {
125  return m_itr == it.m_itr;
126  }

Friends And Related Function Documentation

◆ IdentifiableContainerMT< T >

template<class T >
friend class IdentifiableContainerMT< T >
friend

Definition at line 130 of file IdentifiableContainerMT.h.

Member Data Documentation

◆ m_itr

template<class T >
EventContainers::I_InternalIDC::InternalConstItr IdentifiableContainerMT< T >::const_iterator::m_itr
protected

Definition at line 140 of file IdentifiableContainerMT.h.


The documentation for this class was generated from the following file:
IdentifiableContainerMT::const_iterator::const_iterator
const_iterator()
iterator constructor
Definition: IdentifiableContainerMT.h:87
skel.it
it
Definition: skel.GENtoEVGEN.py:396
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
IdentifiableContainerMT::const_iterator::m_itr
EventContainers::I_InternalIDC::InternalConstItr m_itr
Definition: IdentifiableContainerMT.h:140
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35