| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

HepMC::GenEvent::vertex_const_iterator Class Reference

HepMC::GenEvent::vertex_const_iterator is used to iterate over all vertices in the event. 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

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.

00264                 : m_map_iterator(i) {}

HepMC::GenEvent::vertex_const_iterator::vertex_const_iterator (  )  [inline]

Definition at line 265 of file GenEvent.h.

00265 {}

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

copy constructor

Definition at line 267 of file GenEvent.h.

00268                 { *this = i; }

virtual HepMC::GenEvent::vertex_const_iterator::~vertex_const_iterator (  )  [inline, virtual]

Definition at line 269 of file GenEvent.h.

00269 {}


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.

00272                 { 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.

00274 { 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.

00277                 { ++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.

00280                 { 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.

00283                 { 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.

00286                 { 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 Mon Apr 11 19:56:44 2011 for HepMC by doxygen 1.4.7