CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edm::ErrorSummaryEntry Struct Reference

#include <ErrorSummaryEntry.h>

Public Member Functions

 ErrorSummaryEntry ()
 
 ErrorSummaryEntry (std::string const &cat, std::string const &mod, ELseverityLevel sev, unsigned int cnt=0)
 
bool operator< (ErrorSummaryEntry const &rhs) const
 
bool operator== (ErrorSummaryEntry const &rhs) const
 

Public Attributes

std::string category
 
unsigned int count
 
std::string module
 
ELseverityLevel severity
 

Detailed Description

Definition at line 36 of file ErrorSummaryEntry.h.

Constructor & Destructor Documentation

◆ ErrorSummaryEntry() [1/2]

edm::ErrorSummaryEntry::ErrorSummaryEntry ( std::string const &  cat,
std::string const &  mod,
ELseverityLevel  sev,
unsigned int  cnt = 0 
)
inline

Definition at line 41 of file ErrorSummaryEntry.h.

42  : category(cat), module(mod), severity(sev), count(cnt) {}

◆ ErrorSummaryEntry() [2/2]

edm::ErrorSummaryEntry::ErrorSummaryEntry ( )
inline

Definition at line 43 of file ErrorSummaryEntry.h.

43 : category(), module(), severity(), count(0) {}

Member Function Documentation

◆ operator<()

bool edm::ErrorSummaryEntry::operator< ( ErrorSummaryEntry const &  rhs) const
inline

Definition at line 44 of file ErrorSummaryEntry.h.

44  {
45  if (category < rhs.category)
46  return true;
47  if (category > rhs.category)
48  return false;
49  if (module < rhs.module)
50  return true;
51  if (module > rhs.module)
52  return false;
53  if (severity < rhs.severity)
54  return true;
55  if (severity > rhs.severity)
56  return false;
57  if (count < rhs.count)
58  return true;
59  return false;
60  }

References category, count, module, and severity.

◆ operator==()

bool edm::ErrorSummaryEntry::operator== ( ErrorSummaryEntry const &  rhs) const
inline

Definition at line 61 of file ErrorSummaryEntry.h.

61  {
62  return ((category < rhs.category) && (module < rhs.module) && (severity < rhs.severity) && (count < rhs.count));
63  }

References category, count, module, and severity.

Member Data Documentation

◆ category

std::string edm::ErrorSummaryEntry::category

Definition at line 37 of file ErrorSummaryEntry.h.

Referenced by leef::ErrorSort::operator()(), operator<(), and operator==().

◆ count

unsigned int edm::ErrorSummaryEntry::count

◆ module

std::string edm::ErrorSummaryEntry::module

◆ severity

ELseverityLevel edm::ErrorSummaryEntry::severity

Definition at line 39 of file ErrorSummaryEntry.h.

Referenced by leef::ErrorSort::operator()(), operator<(), and operator==().

eostools.cat
def cat(path)
Definition: eostools.py:401
mod
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
edm::ErrorSummaryEntry::severity
ELseverityLevel severity
Definition: ErrorSummaryEntry.h:39
edm::ErrorSummaryEntry::category
std::string category
Definition: ErrorSummaryEntry.h:37
edm::ErrorSummaryEntry::count
unsigned int count
Definition: ErrorSummaryEntry.h:40
edm::ErrorSummaryEntry::module
std::string module
Definition: ErrorSummaryEntry.h:38