ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
CaloTopoTmpHashClusterBase< T >::iterator Class Reference

#include <CaloTopoTmpHashClusterBase.h>

Inheritance diagram for CaloTopoTmpHashClusterBase< T >::iterator:
Collaboration diagram for CaloTopoTmpHashClusterBase< T >::iterator:

Public Types

typedef T * value_type
 
typedef value_typereference
 
typedef value_typepointer
 
using iterator_category = std::forward_iterator_tag
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 iterator (pointer_list::iterator iter)
 
reference operator* ()
 
reference operator-> ()
 
bool operator== (const iterator &other) const
 Equality comparison. More...
 
bool operator!= (const iterator &other) const
 Inequality comparison. More...
 
iteratoroperator++ ()
 Advance (pre-increment). More...
 
iterator operator++ (int)
 Advance (post-increment). More...
 

Private Attributes

value_typem_p
 Current iteration position. More...
 

Detailed Description

template<class T>
class CaloTopoTmpHashClusterBase< T >::iterator

Definition at line 45 of file CaloTopoTmpHashClusterBase.h.

Member Typedef Documentation

◆ difference_type

template<size_t NELT = 15>
using CxxUtils::pointer_list< NELT >::iterator::difference_type = std::ptrdiff_t
inherited

Definition at line 285 of file pointer_list.h.

◆ iterator_category

template<size_t NELT = 15>
using CxxUtils::pointer_list< NELT >::iterator::iterator_category = std::forward_iterator_tag
inherited

Definition at line 283 of file pointer_list.h.

◆ pointer

template<class T >
typedef value_type* CaloTopoTmpHashClusterBase< T >::iterator::pointer

Definition at line 51 of file CaloTopoTmpHashClusterBase.h.

◆ reference

template<class T >
typedef value_type& CaloTopoTmpHashClusterBase< T >::iterator::reference

Definition at line 50 of file CaloTopoTmpHashClusterBase.h.

◆ value_type

template<class T >
typedef T* CaloTopoTmpHashClusterBase< T >::iterator::value_type

Definition at line 49 of file CaloTopoTmpHashClusterBase.h.

Constructor & Destructor Documentation

◆ iterator()

template<class T >
CaloTopoTmpHashClusterBase< T >::iterator::iterator ( pointer_list::iterator  iter)
inline

Definition at line 53 of file CaloTopoTmpHashClusterBase.h.

54  : pointer_list::iterator (iter)
55  {}

Member Function Documentation

◆ operator!=()

template<size_t NELT = 15>
bool CxxUtils::pointer_list< NELT >::iterator::operator!= ( const iterator other) const
inherited

Inequality comparison.

◆ operator*()

template<class T >
reference CaloTopoTmpHashClusterBase< T >::iterator::operator* ( )
inline

Definition at line 57 of file CaloTopoTmpHashClusterBase.h.

58  {
59  // cppcheck-suppress returnTempReference; false positive
60  return reinterpret_cast<reference> (pointer_list::iterator::operator*());
61  }

◆ operator++() [1/2]

template<size_t NELT = 15>
iterator& CxxUtils::pointer_list< NELT >::iterator::operator++ ( )
inherited

Advance (pre-increment).

◆ operator++() [2/2]

template<size_t NELT = 15>
iterator CxxUtils::pointer_list< NELT >::iterator::operator++ ( int  )
inherited

Advance (post-increment).

◆ operator->()

template<class T >
reference CaloTopoTmpHashClusterBase< T >::iterator::operator-> ( )
inline

Definition at line 63 of file CaloTopoTmpHashClusterBase.h.

64  {
65  // cppcheck-suppress returnTempReference; false positive
66  return reinterpret_cast<reference> (pointer_list::iterator::operator*());
67  }

◆ operator==()

template<size_t NELT = 15>
bool CxxUtils::pointer_list< NELT >::iterator::operator== ( const iterator other) const
inherited

Equality comparison.

Member Data Documentation

◆ m_p

template<size_t NELT = 15>
value_type* CxxUtils::pointer_list< NELT >::iterator::m_p
privateinherited

Current iteration position.

Definition at line 310 of file pointer_list.h.


The documentation for this class was generated from the following file:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
CxxUtils::pointer_list::iterator::operator*
reference operator*()
Dereference.
reference
Definition: hcg.cxx:437