ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MissingETComposition::const_iterator< OBJECT > Class Template Reference

#include <MissingETComposition.h>

Collaboration diagram for MissingETComposition::const_iterator< OBJECT >:

Public Member Functions

 const_iterator ()
 
 const_iterator (const base_t *store, iiterator_t iiter)
 
virtual ~const_iterator ()
 
 const_iterator (const const_iterator &iter)
 
const_iterator operator= (const const_iterator &iter)
 
const_iterator operator++ ()
 
const_iterator operator++ (int)
 
const_iterator operator-- ()
 
const_iterator operator-- (int)
 
bool operator== (const const_iterator &iter) const
 
bool operator!= (const const_iterator &iter) const
 
const OBJECT * operator* () const
 
const OBJECT *& operator-> () const
 
const OBJECT * getObject () const
 
const weight_t getParameter () const
 
const INavigable4MomentumCollectiongetContainer () const
 

Private Attributes

const base_tm_store
 
iiterator_t m_actual
 

Detailed Description

template<class OBJECT>
class MissingETComposition::const_iterator< OBJECT >

Definition at line 308 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

template<class OBJECT >
MissingETComposition::const_iterator< OBJECT >::const_iterator ( )
inline

◆ const_iterator() [2/3]

template<class OBJECT >
MissingETComposition::const_iterator< OBJECT >::const_iterator ( const base_t store,
iiterator_t  iiter 
)
inline

◆ ~const_iterator()

template<class OBJECT >
virtual MissingETComposition::const_iterator< OBJECT >::~const_iterator ( )
inlinevirtual

◆ const_iterator() [3/3]

template<class OBJECT >
MissingETComposition::const_iterator< OBJECT >::const_iterator ( const const_iterator< OBJECT > &  iter)
inline

Definition at line 316 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

317  : m_store(iter.m_store), m_actual(iter.m_actual) { }

Member Function Documentation

◆ getContainer()

template<class OBJECT >
const INavigable4MomentumCollection* MissingETComposition::const_iterator< OBJECT >::getContainer ( ) const
inline

◆ getObject()

template<class OBJECT >
const OBJECT* MissingETComposition::const_iterator< OBJECT >::getObject ( ) const
inline

Definition at line 381 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

381 { return this->operator*(); }

◆ getParameter()

template<class OBJECT >
const weight_t MissingETComposition::const_iterator< OBJECT >::getParameter ( ) const
inline

◆ operator!=()

template<class OBJECT >
bool MissingETComposition::const_iterator< OBJECT >::operator!= ( const const_iterator< OBJECT > &  iter) const
inline

Definition at line 364 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

365  { return !(this->operator==)(iter); }

◆ operator*()

template<class OBJECT >
const OBJECT* MissingETComposition::const_iterator< OBJECT >::operator* ( ) const
inline

Definition at line 368 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

369  {
370  return dynamic_cast<const OBJECT*>(*m_actual);
371  }

◆ operator++() [1/2]

template<class OBJECT >
const_iterator MissingETComposition::const_iterator< OBJECT >::operator++ ( )
inline

Definition at line 328 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

329  {
330  m_actual++;
331  while ( m_actual != m_store->end() &&
332  dynamic_cast<const OBJECT*>(*m_actual) == 0 ) { m_actual++; };
333  return *this;
334  }

◆ operator++() [2/2]

template<class OBJECT >
const_iterator MissingETComposition::const_iterator< OBJECT >::operator++ ( int  )
inline

Definition at line 335 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

336  {
337  const_iterator tmp(*this);
338  m_actual++;
339  while ( m_actual != m_store->end() &&
340  dynamic_cast<const OBJECT*>(*m_actual) == 0 ) { m_actual++; };
341  return tmp;
342  }

◆ operator--() [1/2]

template<class OBJECT >
const_iterator MissingETComposition::const_iterator< OBJECT >::operator-- ( )
inline

Definition at line 345 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

346  {
347  m_actual--;
348  while ( m_actual != m_store->begin() &&
349  dynamic_cast<const OBJECT*>(*m_actual) == 0 ) { m_actual--; };
350  return m_actual != m_store->begin() ? *this : 0;
351  }

◆ operator--() [2/2]

template<class OBJECT >
const_iterator MissingETComposition::const_iterator< OBJECT >::operator-- ( int  )
inline

Definition at line 352 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

353  {
354  const_iterator tmp(*this);
355  m_actual--;
356  while ( m_actual != m_store->end() &&
357  dynamic_cast<const OBJECT*>(*m_actual) == 0 ) { m_actual--; };
358  return tmp;
359  }

◆ operator->()

template<class OBJECT >
const OBJECT*& MissingETComposition::const_iterator< OBJECT >::operator-> ( ) const
inline

Definition at line 372 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

373  {
374  if (dynamic_cast<const OBJECT*>(*m_actual)==0) {
375  std::cout << "dynamic cast==0 in operator*" << std::endl;
376  }
377 
378  return dynamic_cast<const OBJECT*>(*m_actual);
379  }

◆ operator=()

template<class OBJECT >
const_iterator MissingETComposition::const_iterator< OBJECT >::operator= ( const const_iterator< OBJECT > &  iter)
inline

Definition at line 319 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

319  {
320  if(&iter != this) {
321  m_store = iter.m_store;
322  m_actual = iter.m_actual;
323  }
324  return *this;
325  }

◆ operator==()

template<class OBJECT >
bool MissingETComposition::const_iterator< OBJECT >::operator== ( const const_iterator< OBJECT > &  iter) const
inline

Definition at line 362 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

363  { return m_store == iter.m_store && m_actual == iter.m_actual; }

Member Data Documentation

◆ m_actual

template<class OBJECT >
iiterator_t MissingETComposition::const_iterator< OBJECT >::m_actual
private

◆ m_store

template<class OBJECT >
const base_t* MissingETComposition::const_iterator< OBJECT >::m_store
private

The documentation for this class was generated from the following file:
store
StoreGateSvc * store
Definition: fbtTestBasics.cxx:71
MissingETComposition::const_iterator::m_store
const base_t * m_store
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:389
MissingETComposition::const_iterator::m_actual
iiterator_t m_actual
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:390
Navigable::begin
virtual object_iter begin() const
NavigableIterator::m_actual
COLL::const_iterator m_actual
Definition: NavigableIterator.h:212
Navigable::end
virtual object_iter end() const
MissingETComposition::const_iterator::operator*
const OBJECT * operator*() const
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:368
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
Navigable::getContainer
const CONT * getContainer(const constituent_type *aConstituent) const
NavigableIterator::getParameter
RPAR getParameter() const
Definition: NavigableIterator.h:197
MissingETComposition::const_iterator::const_iterator
const_iterator()
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:311