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 ()
 
double value () const
 
 ~DoubleJ () override
 
- Public Member Functions inherited from jsoncollector::JsonMonitorable
virtual std::string const & getName () const
 
bool getNotSame () const
 
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 107 of file JsonMonitorable.h.

Constructor & Destructor Documentation

◆ DoubleJ() [1/2]

jsoncollector::DoubleJ::DoubleJ ( )
inline

Definition at line 109 of file JsonMonitorable.h.

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

◆ DoubleJ() [2/2]

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

Definition at line 110 of file JsonMonitorable.h.

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

◆ ~DoubleJ()

jsoncollector::DoubleJ::~DoubleJ ( )
inlineoverride

Definition at line 112 of file JsonMonitorable.h.

112 {}

Member Function Documentation

◆ operator=()

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

Definition at line 124 of file JsonMonitorable.h.

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

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

◆ resetValue()

void jsoncollector::DoubleJ::resetValue ( )
inlineoverridevirtual

Implements jsoncollector::JsonMonitorable.

Definition at line 119 of file JsonMonitorable.h.

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

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

◆ toString()

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

Implements jsoncollector::JsonMonitorable.

Definition at line 114 of file JsonMonitorable.h.

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

References contentValuesCheck::ss, and theVar_.

◆ update()

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

◆ value() [1/2]

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

◆ value() [2/2]

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

Member Data Documentation

◆ theVar_

double jsoncollector::DoubleJ::theVar_
private

Definition at line 139 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:139