/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Protected Attributes
HepMC::GenEvent::particle_const_iterator Class Reference

const particle iterator More...

#include <GenEvent.h>

List of all members.

Public Member Functions

 particle_const_iterator (const std::map< int, HepMC::GenParticle * >::const_iterator &i)
 iterate over particles
 particle_const_iterator ()
 particle_const_iterator (const particle_const_iterator &i)
 copy constructor
virtual ~particle_const_iterator ()
particle_const_iteratoroperator= (const particle_const_iterator &i)
 make a copy
GenParticleoperator* (void) const
 return a pointer to GenParticle
particle_const_iteratoroperator++ (void)
 Pre-fix increment.
particle_const_iterator operator++ (int)
 Post-fix increment.
bool operator== (const particle_const_iterator &a) const
bool operator!= (const particle_const_iterator &a) const

Protected Attributes

std::map< int,
HepMC::GenParticle * >
 const iterator to the GenParticle map

Detailed Description

const particle iterator

HepMC::GenEvent::particle_const_iterator is used to iterate over all particles in the event.

Definition at line 375 of file GenEvent.h.

Constructor & Destructor Documentation

HepMC::GenEvent::particle_const_iterator::particle_const_iterator ( const std::map< int, HepMC::GenParticle * >::const_iterator &  i) [inline]

iterate over particles

Definition at line 380 of file GenEvent.h.

                : m_map_iterator(i) {}
HepMC::GenEvent::particle_const_iterator::particle_const_iterator ( ) [inline]

Definition at line 383 of file GenEvent.h.

HepMC::GenEvent::particle_const_iterator::particle_const_iterator ( const particle_const_iterator i) [inline]

copy constructor

Definition at line 385 of file GenEvent.h.

                { *this = i; }
virtual HepMC::GenEvent::particle_const_iterator::~particle_const_iterator ( ) [inline, virtual]

Definition at line 387 of file GenEvent.h.


Member Function Documentation

particle_const_iterator& HepMC::GenEvent::particle_const_iterator::operator= ( const particle_const_iterator i) [inline]

make a copy

Definition at line 389 of file GenEvent.h.

                { m_map_iterator = i.m_map_iterator; return *this; }
GenParticle* HepMC::GenEvent::particle_const_iterator::operator* ( void  ) const [inline]

return a pointer to GenParticle

Definition at line 393 of file GenEvent.h.

                { return m_map_iterator->second; }
particle_const_iterator& HepMC::GenEvent::particle_const_iterator::operator++ ( void  ) [inline]

Pre-fix increment.

Definition at line 396 of file GenEvent.h.

                { ++m_map_iterator; return *this; }
particle_const_iterator HepMC::GenEvent::particle_const_iterator::operator++ ( int  ) [inline]

Post-fix increment.

Definition at line 399 of file GenEvent.h.

                { particle_const_iterator out(*this); ++(*this); return out; }
bool HepMC::GenEvent::particle_const_iterator::operator== ( const particle_const_iterator a) const [inline]


Definition at line 402 of file GenEvent.h.

                { return m_map_iterator == a.m_map_iterator; }
bool HepMC::GenEvent::particle_const_iterator::operator!= ( const particle_const_iterator a) const [inline]


Definition at line 405 of file GenEvent.h.

                { return !(m_map_iterator == a.m_map_iterator); }

Member Data Documentation

const iterator to the GenParticle map

Definition at line 409 of file GenEvent.h.

The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:49:37 for HepMC by doxygen 1.7.4