CMS 3D CMS Logo

Classes | Namespaces | Functions
DTCELinkId.h File Reference
#include "CondFormats/Serialization/interface/Serializable.h"
#include <cstdint>
#include <functional>
#include <limits>

Go to the source code of this file.

Classes

class  DTCELinkId
 
struct  std::hash< DTCELinkId >
 

Namespaces

 std
 

Functions

bool operator!= (DTCELinkId const &lhs, DTCELinkId const &rhs)
 
bool operator< (DTCELinkId const &lhs, DTCELinkId const &rhs)
 
bool operator== (DTCELinkId const &lhs, DTCELinkId const &rhs)
 
bool operator> (DTCELinkId const &lhs, DTCELinkId const &rhs)
 

Function Documentation

◆ operator!=()

bool operator!= ( DTCELinkId const &  lhs,
DTCELinkId const &  rhs 
)
inline

Definition at line 81 of file DTCELinkId.h.

References DTCELinkId::dtc_id(), DTCELinkId::elink_id(), and DTCELinkId::gbtlink_id().

81  {
82  return lhs.dtc_id() != rhs.dtc_id() || lhs.gbtlink_id() != rhs.gbtlink_id() || lhs.elink_id() != rhs.elink_id();
83 }

◆ operator<()

bool operator< ( DTCELinkId const &  lhs,
DTCELinkId const &  rhs 
)
inline

Definition at line 70 of file DTCELinkId.h.

References DTCELinkId::dtc_id(), DTCELinkId::elink_id(), and DTCELinkId::gbtlink_id().

70  {
71  return lhs.dtc_id() < rhs.dtc_id() || (lhs.dtc_id() == rhs.dtc_id() && lhs.gbtlink_id() < rhs.gbtlink_id()) ||
72  (lhs.dtc_id() == rhs.dtc_id() && lhs.gbtlink_id() == rhs.gbtlink_id() && lhs.elink_id() < rhs.elink_id());
73 }

◆ operator==()

bool operator== ( DTCELinkId const &  lhs,
DTCELinkId const &  rhs 
)
inline

Definition at line 78 of file DTCELinkId.h.

References DTCELinkId::dtc_id(), DTCELinkId::elink_id(), and DTCELinkId::gbtlink_id().

78  {
79  return lhs.dtc_id() == rhs.dtc_id() && lhs.gbtlink_id() == rhs.gbtlink_id() && lhs.elink_id() == rhs.elink_id();
80 }

◆ operator>()

bool operator> ( DTCELinkId const &  lhs,
DTCELinkId const &  rhs 
)
inline

Definition at line 74 of file DTCELinkId.h.

References DTCELinkId::dtc_id(), DTCELinkId::elink_id(), and DTCELinkId::gbtlink_id().

74  {
75  return lhs.dtc_id() > rhs.dtc_id() || (lhs.dtc_id() == rhs.dtc_id() && lhs.gbtlink_id() > rhs.gbtlink_id()) ||
76  (lhs.dtc_id() == rhs.dtc_id() && lhs.gbtlink_id() == rhs.gbtlink_id() && lhs.elink_id() > rhs.elink_id());
77 }