LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | Friends | List of all members
SIO::RunEventMap Class Reference

Map that holds positions of Run and Event records. More...

#include <SIO/RunEventMap.h>

Public Types

typedef std::map< RunEvent,
long64 > 
MapType
 
typedef MapType::iterator Map_IT
 
typedef MapType::const_iterator Map_cIT
 

Public Member Functions

void add (const RunEvent &re, long64 pos)
 Add a new entry to the event map - if the RunEvent already exists the new position will be stored.
 
long64 getPosition (const RunEvent &re)
 Return the position of the specified Event record or Run record respectively (if EventNum == -1 ). More...
 
long64 getPosition (long64 re)
 Same as getPosition(const RunEvent& re ).
 
RunEvent minRunEvent ()
 
RunEvent maxRunEvent ()
 
int getNumberOfEventRecords () const
 
int getNumberOfRunRecords () const
 
size_t size ()
 
Map_IT begin ()
 
Map_IT end ()
 
Map_cIT begin () const
 
Map_cIT end () const
 
bool empty () const
 
template<class InputIterator >
void insert (InputIterator b, InputIterator e)
 
void clear ()
 

Static Public Attributes

static const int NPos = -1
 

Protected Attributes

MapType _map
 
int _nRun
 
int _nEvt
 

Friends

std::ostream & operator<< (std::ostream &os, const RunEventMap &rm)
 

Detailed Description

Map that holds positions of Run and Event records.

Author
gaede
Version
Id:
RunEventMap.h,v 1.3 2011-03-03 16:00:12 gaede Exp

Member Function Documentation

long64 SIO::RunEventMap::getPosition ( const RunEvent re)
inline

Return the position of the specified Event record or Run record respectively (if EventNum == -1 ).

Returns RunEventMap::NPos if no record found.

Referenced by SIO::LCIORandomAccessMgr::getPosition().


The documentation for this class was generated from the following files: