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 37 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 42 of file ErrorSummaryEntry.h.

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

◆ ErrorSummaryEntry() [2/2]

edm::ErrorSummaryEntry::ErrorSummaryEntry ( )
inline

Definition at line 44 of file ErrorSummaryEntry.h.

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

Member Function Documentation

◆ operator<()

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

Definition at line 45 of file ErrorSummaryEntry.h.

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

References category, count, module, and severity.

◆ operator==()

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

Definition at line 62 of file ErrorSummaryEntry.h.

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

References category, count, module, and severity.

Member Data Documentation

◆ category

std::string edm::ErrorSummaryEntry::category

Definition at line 38 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 40 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:40
edm::ErrorSummaryEntry::category
std::string category
Definition: ErrorSummaryEntry.h:38
edm::ErrorSummaryEntry::count
unsigned int count
Definition: ErrorSummaryEntry.h:41
edm::ErrorSummaryEntry::module
std::string module
Definition: ErrorSummaryEntry.h:39