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 78 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 84 of file IdentifiableContainerMT.h.

84 : 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 134 of file IdentifiableContainerMT.h.

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

Member Function Documentation

◆ cptr()

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

Definition at line 105 of file IdentifiableContainerMT.h.

105  {
106  return reinterpret_cast<const T*>( m_itr->second );
107  }

◆ hashId()

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

hashId of the pointed-to element

Definition at line 127 of file IdentifiableContainerMT.h.

127  {
128  return m_itr->first;
129  }

◆ operator!=()

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

comparison operator

Definition at line 116 of file IdentifiableContainerMT.h.

116  {
117  return m_itr!= it.m_itr;
118  }

◆ operator*()

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

Definition at line 109 of file IdentifiableContainerMT.h.

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

◆ operator++() [1/2]

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

increment operator

Definition at line 93 of file IdentifiableContainerMT.h.

93  {
94  ++m_itr;
95  return *this;
96  }

◆ operator++() [2/2]

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

increment operator

Definition at line 99 of file IdentifiableContainerMT.h.

99  {
100  const_iterator tmp = *this;
101  ++*this;
102  return tmp;
103  }

◆ operator->()

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

Definition at line 113 of file IdentifiableContainerMT.h.

113 { 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 121 of file IdentifiableContainerMT.h.

121  {
122  return m_itr == it.m_itr;
123  }

Friends And Related Function Documentation

◆ IdentifiableContainerMT< T >

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

Definition at line 127 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 137 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:84
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:137
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35