LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LCIORandomAccess.h
Go to the documentation of this file.
1 #ifndef SIO_LCIORandomAccess_H
2 #define SIO_LCIORandomAccess_H 1
3 
5 #include "SIO/RunEventMap.h"
6 
7 // -- std headers
8 #include <iostream>
9 
10 namespace SIO {
11 
12  class SIORandomAccessHandler ;
13  class LCIORandomAccess ;
14  class LCIORandomAccessMgr ;
15 
16  std::ostream & operator<<(std::ostream& os, const LCIORandomAccess& ra ) ;
17  bool operator < (const LCIORandomAccess& ra0, const LCIORandomAccess& other) ;
18 
19 
27  friend class SIORandomAccessHandler ;
28  friend class LCIORandomAccessMgr ;
29  friend std::ostream & operator<<(std::ostream& os, const LCIORandomAccess& ra ) ;
30  friend bool operator < (const LCIORandomAccess& ra0, const LCIORandomAccess& other) ;
31 
32  public:
33  LCIORandomAccess() = default ;
34  ~LCIORandomAccess() = default ;
35 
37  long64 getIndexLocation() const ;
38 
40  long64 getPrevLocation() const ;
41 
44 
46  void setIndexLocation(long64 il) ;
47 
49  void setPreviousLocation(long64 pl) ;
50 
53 
54  protected:
57  int _nRunHeaders {0} ;
58  int _nEvents {0} ;
64  };
65 
66 } // namespace
67 #endif
LCIORandomAccess()=default
Manager class for LCIO direct access.
long64 getIndexLocation() const
Get the random access index location.
RunEvent::long64 long64
friend bool operator<(const LCIORandomAccess &ra0, const LCIORandomAccess &other)
Helper struct that stores run and event positions in the file.
Definition: RunEventMap.h:14
std::ostream & operator<<(std::ostream &os, const LCIORandomAccess &ra)
void setIndexLocation(long64 il)
Set the random access index location.
Implementation class for LCIORandomAccess records.
Handler for LCIOrandomAccess and LCIOIndex objects/blocks.
long64 getFirstRecordLocation() const
Get the first record location.
long long long64
Definition: RunEventMap.h:15
~LCIORandomAccess()=default
void setPreviousLocation(long64 pl)
Set the previous record location.
friend std::ostream & operator<<(std::ostream &os, const LCIORandomAccess &ra)
void setFirstRecordLocation(long64 fl)
Set the first record location.
STL class.
bool operator<(const LCIORandomAccess &ra0, const LCIORandomAccess &other)
long64 getPrevLocation() const
Get the previous record location.