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 ). | |
| 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 |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const RunEventMap &rm) |
Map that holds positions of Run and Event records.
| 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.
1.6.1