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

Constructor & Destructor Documentation

◆ const_iterator() [1/4]

iterator constructor

Definition at line 85 of file IdentifiableContainerMT.h.

85: 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 106 of file IdentifiableContainerMT.h.

106 {
107 return std::bit_cast<const T*>( m_itr->second );
108 }

◆ hashId()

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

hashId of the pointed-to element

Definition at line 128 of file IdentifiableContainerMT.h.

128 {
129 return m_itr->first;
130 }

◆ operator!=()

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

comparison operator

Definition at line 117 of file IdentifiableContainerMT.h.

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

◆ operator*()

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

Definition at line 110 of file IdentifiableContainerMT.h.

110 {
111 return std::bit_cast<const T*>( m_itr->second );
112 }

◆ operator++() [1/2]

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

increment operator

Definition at line 94 of file IdentifiableContainerMT.h.

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

◆ operator++() [2/2]

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

increment operator

Definition at line 100 of file IdentifiableContainerMT.h.

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

◆ operator->()

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

Definition at line 114 of file IdentifiableContainerMT.h.

114{ 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 122 of file IdentifiableContainerMT.h.

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

◆ IdentifiableContainerMT< T >

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

Definition at line 128 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 138 of file IdentifiableContainerMT.h.


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