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) |
Map that holds positions of Run and Event records.
|
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().