File indexing completed on 2024-04-06 12:13:13
0001 #ifndef FWCore_Utilities_StreamID_h
0002 #define FWCore_Utilities_StreamID_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 namespace edm {
0027 class Schedule;
0028 class EventPrincipal;
0029
0030 class StreamID {
0031 public:
0032 ~StreamID() = default;
0033 StreamID() = delete;
0034 StreamID(const StreamID&) = default;
0035 StreamID& operator=(const StreamID&) = default;
0036
0037 bool operator==(const StreamID& iID) const { return iID.value_ == value_; }
0038
0039 operator unsigned int() const { return value_; }
0040
0041
0042
0043 unsigned int value() const { return value_; }
0044
0045 static StreamID invalidStreamID() { return StreamID(0xFFFFFFFFU); }
0046
0047 private:
0048
0049 friend class Schedule;
0050 friend class EventPrincipal;
0051 explicit StreamID(unsigned int iValue) : value_(iValue) {}
0052
0053
0054 unsigned int value_;
0055 };
0056 }
0057
0058 #endif