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

const vertex iterator More...

#include <GenEvent.h>

List of all members.

Public Member Functions

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

Protected Attributes

std::map< int,
HepMC::GenVertex
*, std::greater< int >
>::const_iterator 
m_map_iterator
 const iterator to a vertex map

Detailed Description

const vertex iterator

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

Definition at line 256 of file GenEvent.h.


Constructor & Destructor Documentation

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

constructor requiring vertex information

Definition at line 261 of file GenEvent.h.

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

Definition at line 265 of file GenEvent.h.

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

copy constructor

Definition at line 267 of file GenEvent.h.

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

Definition at line 269 of file GenEvent.h.

{}

Member Function Documentation

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

make a copy

Definition at line 271 of file GenEvent.h.

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

return a pointer to a GenVertex

Definition at line 274 of file GenEvent.h.

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

Pre-fix increment.

Definition at line 276 of file GenEvent.h.

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

Post-fix increment.

Definition at line 279 of file GenEvent.h.

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

equality

Definition at line 282 of file GenEvent.h.

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

inequality

Definition at line 285 of file GenEvent.h.

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

Member Data Documentation

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

const iterator to a vertex map

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