/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_iterator Class Reference

non-const particle iterator More...

#include <GenEvent.h>

List of all members.

Public Member Functions

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

Protected Attributes

std::map< int,
HepMC::GenParticle * >
::iterator 
m_map_iterator
 iterator for GenParticle map

Detailed Description

non-const particle iterator

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

Definition at line 426 of file GenEvent.h.


Constructor & Destructor Documentation

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

iterate over particles

Definition at line 431 of file GenEvent.h.

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

Definition at line 433 of file GenEvent.h.

{}
HepMC::GenEvent::particle_iterator::particle_iterator ( const particle_iterator i) [inline]

copy constructor

Definition at line 435 of file GenEvent.h.

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

Definition at line 436 of file GenEvent.h.

{}

Member Function Documentation

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

make a copy

Definition at line 438 of file GenEvent.h.

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

const particle iterator

Definition at line 443 of file GenEvent.h.

GenParticle* HepMC::GenEvent::particle_iterator::operator* ( void  ) const [inline]

return pointer to GenParticle

Definition at line 446 of file GenEvent.h.

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

Pre-fix increment.

Definition at line 449 of file GenEvent.h.

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

Post-fix increment.

Definition at line 452 of file GenEvent.h.

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

equality

Definition at line 455 of file GenEvent.h.

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

inequality

Definition at line 458 of file GenEvent.h.

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

Member Data Documentation

iterator for GenParticle map

Definition at line 462 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