ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
TileRawRoISelector::const_iterator Class Reference

#include <TileRawRoISelector.h>

Collaboration diagram for TileRawRoISelector::const_iterator:

Public Member Functions

 const_iterator ()
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const OBJECToperator* ()
 
bool operator!= (const const_iterator &it) const
 
bool operator== (const const_iterator &it) const
 

Private Member Functions

 const_iterator (const VEC_ITPAIR *v)
 
 const_iterator (const VEC_ITPAIR *v, const ITPAIR_IT &it)
 

Private Attributes

const VEC_ITPAIRm_vec_itpair
 
ITPAIR_IT m_pair_it
 
OBJ_IT m_obj_it
 
OBJ_IT m_obj_it_end
 

Friends

class TileRawRoISelector
 

Detailed Description

Definition at line 54 of file TileRawRoISelector.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

TileRawRoISelector::const_iterator::const_iterator ( )

Definition at line 31 of file TileRawRoISelector.cxx.

33 {
34  m_vec_itpair = NULL ;
35  return;
36 }

◆ const_iterator() [2/3]

TileRawRoISelector::const_iterator::const_iterator ( const VEC_ITPAIR v)
private

Definition at line 12 of file TileRawRoISelector.cxx.

14  : m_vec_itpair(v),
15  m_pair_it (v->begin())
16 {
17  if(m_pair_it != v->end()){
18  m_obj_it = (*m_pair_it).first ;
19  m_obj_it_end = (*m_pair_it).second ;
20  }
21 }

◆ const_iterator() [3/3]

TileRawRoISelector::const_iterator::const_iterator ( const VEC_ITPAIR v,
const ITPAIR_IT it 
)
private

Definition at line 24 of file TileRawRoISelector.cxx.

26  : m_vec_itpair(v),
27  m_pair_it (it)
28 {
29 }

Member Function Documentation

◆ operator!=()

Definition at line 70 of file TileRawRoISelector.cxx.

72 {
73  // compare m_pair_it first because for end, m_pair_it is end.
74  if(it.m_pair_it == it.m_vec_itpair->end() )
75  { return m_pair_it != it.m_pair_it ;
76  } else
77  return
78  m_pair_it != it.m_pair_it ||
79  m_obj_it != it.m_obj_it ||
80  m_obj_it_end != it.m_obj_it_end ||
81  m_vec_itpair != it.m_vec_itpair ;
82 
83 }

◆ operator*()

const TileRawRoISelector::OBJECT * TileRawRoISelector::const_iterator::operator* ( )

Definition at line 106 of file TileRawRoISelector.cxx.

107 {
108  return *m_obj_it;
109 }

◆ operator++() [1/2]

TileRawRoISelector::const_iterator & TileRawRoISelector::const_iterator::operator++ ( )

Definition at line 41 of file TileRawRoISelector.cxx.

42 {
43  ++m_obj_it;
44  if(m_obj_it == m_obj_it_end) {
45  // end of this RoI, get next RoI
46  ++m_pair_it;
47  if(m_pair_it != m_vec_itpair->end() )
48  {
49  m_obj_it = (*m_pair_it).first;
50  m_obj_it_end = (*m_pair_it).second;
51  }
52  }
53 
54  return *this;
55 }

◆ operator++() [2/2]

TileRawRoISelector::const_iterator TileRawRoISelector::const_iterator::operator++ ( int  )

Definition at line 60 of file TileRawRoISelector.cxx.

61 {
62  const_iterator tmp = *this;
63  ++tmp;
64  return tmp;
65 }

◆ operator==()

bool TileRawRoISelector::const_iterator::operator== ( const const_iterator it) const

Definition at line 87 of file TileRawRoISelector.cxx.

89 {
90  // compare m_map_it first because for end, m_map_it is end.
91 
92  // if m_pair_it is end, only compare the pair iterator
93  if(m_pair_it == m_vec_itpair->end() )
94  return m_pair_it == it.m_pair_it ;
95 
96  return
97  m_pair_it == it.m_pair_it &&
98  m_obj_it == it.m_obj_it &&
99  m_obj_it_end == it.m_obj_it_end &&
100  m_vec_itpair == it.m_vec_itpair ;
101 }

Friends And Related Function Documentation

◆ TileRawRoISelector

friend class TileRawRoISelector
friend

Definition at line 56 of file TileRawRoISelector.h.

Member Data Documentation

◆ m_obj_it

OBJ_IT TileRawRoISelector::const_iterator::m_obj_it
private

Definition at line 77 of file TileRawRoISelector.h.

◆ m_obj_it_end

OBJ_IT TileRawRoISelector::const_iterator::m_obj_it_end
private

Definition at line 78 of file TileRawRoISelector.h.

◆ m_pair_it

ITPAIR_IT TileRawRoISelector::const_iterator::m_pair_it
private

Definition at line 76 of file TileRawRoISelector.h.

◆ m_vec_itpair

const VEC_ITPAIR* TileRawRoISelector::const_iterator::m_vec_itpair
private

Definition at line 75 of file TileRawRoISelector.h.


The documentation for this class was generated from the following files:
TileRawRoISelector::const_iterator::m_obj_it_end
OBJ_IT m_obj_it_end
Definition: TileRawRoISelector.h:78
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TileRawRoISelector::const_iterator::m_obj_it
OBJ_IT m_obj_it
Definition: TileRawRoISelector.h:77
TileRawRoISelector::const_iterator::const_iterator
const_iterator()
Definition: TileRawRoISelector.cxx:32
TileRawRoISelector::const_iterator::m_vec_itpair
const VEC_ITPAIR * m_vec_itpair
Definition: TileRawRoISelector.h:75
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
python.PyAthena.v
v
Definition: PyAthena.py:154
TileRawRoISelector::const_iterator::m_pair_it
ITPAIR_IT m_pair_it
Definition: TileRawRoISelector.h:76