ATLAS Offline Software
Loading...
Searching...
No Matches
SelectAllObjectMT< DCC, OBJECT >::const_iterator Class Reference

#include <SelectAllObjectMT.h>

Collaboration diagram for SelectAllObjectMT< DCC, OBJECT >::const_iterator:

Public Member Functions

 const_iterator ()
 const_iterator (const Cont_iterator &itr, const SelectAllObjectMT< DCC, OBJECT > *parent, Object_const_iterator digitit, const DC *dc)
const OBJECT * operator* ()
const_iteratoroperator++ ()
const_iterator operator++ (int)
bool operator!= (const const_iterator it) const
bool operator== (const const_iterator it) const

Private Member Functions

void AdvanceCollection ()

Private Attributes

Cont_iterator m_cont_itr
const SelectAllObjectMT< DCC, OBJECT > * m_Parent
Object_const_iterator m_digit_it
const DCm_dc

Friends

class SelectAllObjectMT< DCC, OBJECT >

Detailed Description

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
class SelectAllObjectMT< DCC, OBJECT >::const_iterator

Definition at line 21 of file SelectAllObjectMT.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
SelectAllObjectMT< DCC, OBJECT >::const_iterator::const_iterator ( )
inline

Definition at line 46 of file SelectAllObjectMT.h.

◆ const_iterator() [2/2]

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
SelectAllObjectMT< DCC, OBJECT >::const_iterator::const_iterator ( const Cont_iterator & itr,
const SelectAllObjectMT< DCC, OBJECT > * parent,
Object_const_iterator digitit,
const DC * dc )
inline

Definition at line 54 of file SelectAllObjectMT.h.

Member Function Documentation

◆ AdvanceCollection()

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
void SelectAllObjectMT< DCC, OBJECT >::const_iterator::AdvanceCollection ( )
inlineprivate

Definition at line 29 of file SelectAllObjectMT.h.

29 {
30
32
33 ++m_cont_itr;
34 if(m_cont_itr != m_Parent->m_dcc->end()) {
36 m_digit_it = m_dc->begin();
37 if(m_digit_it == m_dc->end()) goto SKIPNEXT;
38 } else {
39 m_dc = nullptr;
41 }
42 }

◆ operator!=()

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
bool SelectAllObjectMT< DCC, OBJECT >::const_iterator::operator!= ( const const_iterator it) const
inline

Definition at line 93 of file SelectAllObjectMT.h.

94 {
95 if( it.m_cont_itr != m_cont_itr || it.m_digit_it != m_digit_it )
96 return true;
97
98 return false;
99 }

◆ operator*()

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
const OBJECT * SelectAllObjectMT< DCC, OBJECT >::const_iterator::operator* ( )
inline

Definition at line 63 of file SelectAllObjectMT.h.

64 {
65 return *m_digit_it;
66 }

◆ operator++() [1/2]

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
const_iterator & SelectAllObjectMT< DCC, OBJECT >::const_iterator::operator++ ( )
inline

Definition at line 71 of file SelectAllObjectMT.h.

72 {
73 ++m_digit_it;
74 if(m_digit_it != m_dc->end()) {
75 // OK
76 } else
77 {
78 // reached end of a collection,
80 }
81 return *this;
82
83 }

◆ operator++() [2/2]

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
const_iterator SelectAllObjectMT< DCC, OBJECT >::const_iterator::operator++ ( int )
inline

Definition at line 86 of file SelectAllObjectMT.h.

87 { const_iterator tmp = *this;
88 ++*this;
89 return tmp;
90 }

◆ operator==()

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
bool SelectAllObjectMT< DCC, OBJECT >::const_iterator::operator== ( const const_iterator it) const
inline

Definition at line 101 of file SelectAllObjectMT.h.

102 {
103 return( it.m_cont_itr == m_cont_itr && it.m_digit_it == m_digit_it );
104 }

◆ SelectAllObjectMT< DCC, OBJECT >

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
friend class SelectAllObjectMT< DCC, OBJECT >
friend

Definition at line 26 of file SelectAllObjectMT.h.

Member Data Documentation

◆ m_cont_itr

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
Cont_iterator SelectAllObjectMT< DCC, OBJECT >::const_iterator::m_cont_itr
private

Definition at line 23 of file SelectAllObjectMT.h.

◆ m_dc

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
const DC* SelectAllObjectMT< DCC, OBJECT >::const_iterator::m_dc
private

Definition at line 26 of file SelectAllObjectMT.h.

◆ m_digit_it

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
Object_const_iterator SelectAllObjectMT< DCC, OBJECT >::const_iterator::m_digit_it
private

Definition at line 25 of file SelectAllObjectMT.h.

◆ m_Parent

template<class DCC, typename OBJECT = typename DCC::IDENTIFIABLE::DIGIT>
const SelectAllObjectMT<DCC,OBJECT>* SelectAllObjectMT< DCC, OBJECT >::const_iterator::m_Parent
private

Definition at line 24 of file SelectAllObjectMT.h.


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