/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::vertex_iterator Class Reference

non-const vertex iterator More...

#include <GenEvent.h>

List of all members.

Public Member Functions

 vertex_iterator (const std::map< int, HepMC::GenVertex *, std::greater< int > >::iterator &i)
 constructor requiring vertex information
 vertex_iterator ()
 vertex_iterator (const vertex_iterator &i)
 copy constructor
virtual ~vertex_iterator ()
vertex_iteratoroperator= (const vertex_iterator &i)
 make a copy
 operator vertex_const_iterator () const
 const vertex iterator
GenVertexoperator* (void) const
 return a pointer to a GenVertex
vertex_iteratoroperator++ (void)
 Pre-fix increment.
vertex_iterator operator++ (int)
 Post-fix increment.
bool operator== (const vertex_iterator &a) const
 equality
bool operator!= (const vertex_iterator &a) const
 inequality

Protected Attributes

std::map< int,
HepMC::GenVertex
*, std::greater< int >
>::iterator 
m_map_iterator
 iterator to the vertex map

Detailed Description

non-const vertex iterator

HepMC::GenEvent::vertex_iterator is used to iterate over all vertices in the event.

Definition at line 308 of file GenEvent.h.


Constructor & Destructor Documentation

HepMC::GenEvent::vertex_iterator::vertex_iterator ( const std::map< int, HepMC::GenVertex *, std::greater< int > >::iterator &  i) [inline]

constructor requiring vertex information

Definition at line 313 of file GenEvent.h.

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

Definition at line 317 of file GenEvent.h.

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

copy constructor

Definition at line 319 of file GenEvent.h.

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

Definition at line 320 of file GenEvent.h.

{}

Member Function Documentation

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

make a copy

Definition at line 322 of file GenEvent.h.

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

const vertex iterator

Definition at line 327 of file GenEvent.h.

GenVertex* HepMC::GenEvent::vertex_iterator::operator* ( void  ) const [inline]

return a pointer to a GenVertex

Definition at line 330 of file GenEvent.h.

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

Pre-fix increment.

Definition at line 333 of file GenEvent.h.

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

Post-fix increment.

Definition at line 336 of file GenEvent.h.

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

equality

Definition at line 339 of file GenEvent.h.

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

inequality

Definition at line 342 of file GenEvent.h.

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

Member Data Documentation

std::map<int,HepMC::GenVertex*,std::greater<int> >::iterator HepMC::GenEvent::vertex_iterator::m_map_iterator [protected]

iterator to the vertex map

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