ATLAS Offline Software
Loading...
Searching...
No Matches
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.
bool operator!= (const iterator &other) const
 Inequality comparison.
iteratoroperator++ ()
 Advance (pre-increment).
iterator operator++ (int)
 Advance (post-increment).

Private Attributes

value_typem_p
 Current iteration position.

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

Definition at line 51 of file CaloTopoTmpHashClusterBase.h.

◆ 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()

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 return reinterpret_cast<reference> (pointer_list::iterator::operator*());
60 }

◆ 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 62 of file CaloTopoTmpHashClusterBase.h.

63 {
64 return reinterpret_cast<reference> (pointer_list::iterator::operator*());
65 }

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