CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
hcaldqm::flag::Flag Struct Reference

#include <Flag.h>

Public Member Functions

 Flag ()
 
 Flag (std::string const &name, State s=fNA)
 
 Flag (Flag const &f)
 
Flag operator+ (Flag const &f)
 
Flagoperator+= (Flag const &f)
 
Flagoperator= (Flag const &f)
 
bool operator== (Flag const &f)
 
void reset ()
 

Public Attributes

std::string _name
 
State _state
 

Detailed Description

Definition at line 27 of file Flag.h.

Constructor & Destructor Documentation

hcaldqm::flag::Flag::Flag ( )
inline

Definition at line 29 of file Flag.h.

Referenced by operator+().

29  :
30  _name("SOMEFLAG"), _state(fNA)
31  {}
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
hcaldqm::flag::Flag::Flag ( std::string const &  name,
State  s = fNA 
)
inline

Definition at line 32 of file Flag.h.

32  :
33  _name(name), _state(s)
34  {}
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
hcaldqm::flag::Flag::Flag ( Flag const &  f)
inline

Definition at line 35 of file Flag.h.

35  :
36  _name(f._name), _state(f._state)
37  {}
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
double f[11][100]

Member Function Documentation

Flag hcaldqm::flag::Flag::operator+ ( Flag const &  f)
inline

Definition at line 42 of file Flag.h.

References _name, _state, Flag(), and hpstanc_transforms::max.

43  {
44  return Flag(_name!=f._name?"SOMEFLAG":_name,
45  (State)(std::max(_state, f._state)));
46  }
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
double f[11][100]
State
Definition: hltDiff.cc:288
Flag& hcaldqm::flag::Flag::operator+= ( Flag const &  f)
inline

Definition at line 51 of file Flag.h.

References _state, and hpstanc_transforms::max.

52  {
53  _state = (State)(std::max(_state, f._state));
54  return *this;
55  }
State _state
Definition: Flag.h:79
double f[11][100]
Flag& hcaldqm::flag::Flag::operator= ( Flag const &  f)
inline

Definition at line 68 of file Flag.h.

References _name, and _state.

69  {
70  _name = f._name;
71  _state = f._state;
72  return *this;
73  }
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
double f[11][100]
bool hcaldqm::flag::Flag::operator== ( Flag const &  f)
inline

Definition at line 60 of file Flag.h.

References _name, and _state.

61  {
62  return (_state==f._state && _name==f._name);
63  }
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
double f[11][100]
void hcaldqm::flag::Flag::reset ( void  )
inline

Member Data Documentation

std::string hcaldqm::flag::Flag::_name
State hcaldqm::flag::Flag::_state