Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:30

0001 #include "CondFormats/SiPhase2TrackerObjects/interface/DTCELinkId.h"
0002 
0003 #include <string>
0004 #include <functional>
0005 #include <limits>
0006 
0007 DTCELinkId::DTCELinkId() noexcept
0008     : elink_id_(std::numeric_limits<decltype(elink_id())>::max()),
0009       gbtlink_id_(std::numeric_limits<decltype(gbtlink_id())>::max()),
0010       dtc_id_(std::numeric_limits<decltype(dtc_id())>::max()) {}
0011 
0012 DTCELinkId::DTCELinkId(DTCELinkId const& rhs) noexcept
0013     : elink_id_(rhs.elink_id_), gbtlink_id_(rhs.gbtlink_id_), dtc_id_(rhs.dtc_id_) {}
0014 
0015 DTCELinkId::DTCELinkId(DTCELinkId&& rhs) noexcept
0016     : elink_id_(rhs.elink_id_), gbtlink_id_(rhs.gbtlink_id_), dtc_id_(rhs.dtc_id_) {}
0017 
0018 DTCELinkId& DTCELinkId::operator=(DTCELinkId const& rhs) noexcept {
0019   elink_id_ = rhs.elink_id_;
0020   gbtlink_id_ = rhs.gbtlink_id_;
0021   dtc_id_ = rhs.dtc_id_;
0022 
0023   return *this;
0024 }
0025 
0026 DTCELinkId& DTCELinkId::operator=(DTCELinkId&& rhs) noexcept {
0027   elink_id_ = rhs.elink_id_;
0028   gbtlink_id_ = rhs.gbtlink_id_;
0029   dtc_id_ = rhs.dtc_id_;
0030 
0031   return *this;
0032 }
0033 
0034 DTCELinkId::~DTCELinkId() noexcept {}
0035 
0036 DTCELinkId::DTCELinkId(uint16_t dtc_id, uint8_t gbtlink_id, uint8_t elink_id) noexcept
0037     : elink_id_(elink_id), gbtlink_id_(gbtlink_id), dtc_id_(dtc_id) {}