CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
jsoncollector::DoubleJ Class Reference

#include <JsonMonitorable.h>

Inheritance diagram for jsoncollector::DoubleJ:
jsoncollector::JsonMonitorable

Public Member Functions

 DoubleJ ()
 
 DoubleJ (double val)
 
void operator= (double sth)
 
void resetValue () override
 
std::string toString () const override
 
void update (double sth)
 
double & value ()
 
 ~DoubleJ () override
 
- Public Member Functions inherited from jsoncollector::JsonMonitorable
virtual std::string & getName ()
 
bool getNotSame ()
 
unsigned int getUpdates ()
 
 JsonMonitorable ()
 
virtual void setName (std::string name)
 
virtual ~JsonMonitorable ()
 

Private Attributes

double theVar_
 

Additional Inherited Members

- Protected Attributes inherited from jsoncollector::JsonMonitorable
std::string name_
 
bool notSame_
 
unsigned int updates_
 

Detailed Description

Definition at line 106 of file JsonMonitorable.h.

Constructor & Destructor Documentation

◆ DoubleJ() [1/2]

jsoncollector::DoubleJ::DoubleJ ( )
inline

Definition at line 108 of file JsonMonitorable.h.

108 : JsonMonitorable(), theVar_(0) {}

◆ DoubleJ() [2/2]

jsoncollector::DoubleJ::DoubleJ ( double  val)
inline

Definition at line 109 of file JsonMonitorable.h.

109 : JsonMonitorable(), theVar_(val) {}

◆ ~DoubleJ()

jsoncollector::DoubleJ::~DoubleJ ( )
inlineoverride

Definition at line 111 of file JsonMonitorable.h.

111 {}

Member Function Documentation

◆ operator=()

void jsoncollector::DoubleJ::operator= ( double  sth)
inline

Definition at line 123 of file JsonMonitorable.h.

123  {
124  theVar_ = sth;
125  updates_ = 1;
126  notSame_ = false;
127  }

References jsoncollector::JsonMonitorable::notSame_, theVar_, and jsoncollector::JsonMonitorable::updates_.

◆ resetValue()

void jsoncollector::DoubleJ::resetValue ( )
inlineoverridevirtual

Implements jsoncollector::JsonMonitorable.

Definition at line 118 of file JsonMonitorable.h.

118  {
119  theVar_ = 0;
120  updates_ = 0;
121  notSame_ = false;
122  }

References jsoncollector::JsonMonitorable::notSame_, theVar_, and jsoncollector::JsonMonitorable::updates_.

◆ toString()

std::string jsoncollector::DoubleJ::toString ( ) const
inlineoverridevirtual

Implements jsoncollector::JsonMonitorable.

Definition at line 113 of file JsonMonitorable.h.

113  {
114  std::stringstream ss;
115  ss << theVar_;
116  return ss.str();
117  }

References contentValuesCheck::ss, and theVar_.

◆ update()

void jsoncollector::DoubleJ::update ( double  sth)
inline

◆ value()

double& jsoncollector::DoubleJ::value ( )
inline

Member Data Documentation

◆ theVar_

double jsoncollector::DoubleJ::theVar_
private

Definition at line 137 of file JsonMonitorable.h.

Referenced by operator=(), resetValue(), toString(), update(), and value().

jsoncollector::JsonMonitorable::updates_
unsigned int updates_
Definition: JsonMonitorable.h:44
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
jsoncollector::JsonMonitorable::notSame_
bool notSame_
Definition: JsonMonitorable.h:45
jsoncollector::JsonMonitorable::JsonMonitorable
JsonMonitorable()
Definition: JsonMonitorable.h:26
heppy_batch.val
val
Definition: heppy_batch.py:351
jsoncollector::DoubleJ::theVar_
double theVar_
Definition: JsonMonitorable.h:137