ra4_stats  0341147a0dc35f80f4e12c6003afb76a38e2ed6e
systematic.cpp
Go to the documentation of this file.
1 #include "systematic.hpp"
2 
3 #include <string>
4 
5 using namespace std;
6 
8  double strength):
9  name_(name),
10  strength_(strength){
11 }
12 
13 const std::string & Systematic::Name() const{
14  return name_;
15 }
16 
17 Systematic & Systematic::Name(const std::string &name){
18  name_ = name;
19  return *this;
20 }
21 
22 const double & Systematic::Strength() const{
23  return strength_;
24 }
25 
27  return strength_;
28 }
29 
30 bool Systematic::operator<(const Systematic &systematic) const{
31  return name_ < systematic.name_;
32 }
33 
34 bool Systematic::operator==(const Systematic &systematic) const{
35  return name_ == systematic.name_;
36 }
37 
38 ostream & operator<<(ostream &stream, const Systematic &syst){
39  stream << "Systematic::" << syst.Name()
40  << "(strength=" << syst.Strength() << ")";
41  return stream;
42 }
STL namespace.
const double & Strength() const
Definition: systematic.cpp:22
double strength_
Definition: systematic.hpp:24
bool operator==(const Systematic &systematic) const
Definition: systematic.cpp:34
ostream & operator<<(ostream &stream, const Systematic &syst)
Definition: systematic.cpp:38
std::string name_
Definition: systematic.hpp:23
bool operator<(const Systematic &systematic) const
Definition: systematic.cpp:30
Systematic(const std::string &name, double strength)
Definition: systematic.cpp:7
const std::string & Name() const
Definition: systematic.cpp:13