ATLAS Offline Software
Loading...
Searching...
No Matches
IdentifiableContainerMT< T >::const_iterator Class Reference

#include <IdentifiableContainerMT.h>

Collaboration diagram for IdentifiableContainerMT< T >::const_iterator:

Public Member Functions

 const_iterator ()
 iterator constructor
 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
const_iterator operator++ (int)
 increment operator
const T * cptr () const
const T * operator* () const
const T * operator-> () const
bool operator!= (const const_iterator &it) const
 comparison operator
bool operator== (const const_iterator &it) const
 comparison operator
IdentifierHash hashId () const
 hashId of the pointed-to element

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]

iterator constructor

Definition at line 87 of file IdentifiableContainerMT.h.

87: m_itr() {}
EventContainers::I_InternalIDC::InternalConstItr m_itr

◆ const_iterator() [2/4]

◆ 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]

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 std::bit_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 std::bit_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 }

◆ 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: