CMS 3D CMS Logo

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

#include <JsonMonitorable.h>

Inheritance diagram for jsoncollector::IntJ:
jsoncollector::JsonMonitorable

Public Member Functions

void add (long sth)
 
 IntJ ()
 
 IntJ (long val)
 
void operator= (long sth)
 
void resetValue () override
 
std::string toString () const override
 
void update (long sth)
 
long & value ()
 
long value () const
 
 ~IntJ () 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

long theVar_
 

Additional Inherited Members

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

Detailed Description

Definition at line 66 of file JsonMonitorable.h.

Constructor & Destructor Documentation

◆ IntJ() [1/2]

jsoncollector::IntJ::IntJ ( )
inline

Definition at line 68 of file JsonMonitorable.h.

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

◆ IntJ() [2/2]

jsoncollector::IntJ::IntJ ( long  val)
inline

Definition at line 69 of file JsonMonitorable.h.

◆ ~IntJ()

jsoncollector::IntJ::~IntJ ( )
inlineoverride

Definition at line 71 of file JsonMonitorable.h.

71 {}

Member Function Documentation

◆ add()

void jsoncollector::IntJ::add ( long  sth)
inline

◆ operator=()

void jsoncollector::IntJ::operator= ( long  sth)
inline

Definition at line 83 of file JsonMonitorable.h.

83  {
84  theVar_ = sth;
85  updates_ = 1;
86  notSame_ = false;
87  }

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

◆ resetValue()

void jsoncollector::IntJ::resetValue ( )
inlineoverridevirtual

Implements jsoncollector::JsonMonitorable.

Definition at line 78 of file JsonMonitorable.h.

78  {
79  theVar_ = 0;
80  updates_ = 0;
81  notSame_ = false;
82  }

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

◆ toString()

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

Implements jsoncollector::JsonMonitorable.

Definition at line 73 of file JsonMonitorable.h.

73  {
74  std::stringstream ss;
75  ss << theVar_;
76  return ss.str();
77  }

References contentValuesCheck::ss, and theVar_.

◆ update()

void jsoncollector::IntJ::update ( long  sth)
inline

◆ value() [1/2]

long& jsoncollector::IntJ::value ( )
inline

◆ value() [2/2]

long jsoncollector::IntJ::value ( ) const
inline

Member Data Documentation

◆ theVar_

long jsoncollector::IntJ::theVar_
private

Definition at line 104 of file JsonMonitorable.h.

Referenced by add(), 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::IntJ::theVar_
long theVar_
Definition: JsonMonitorable.h:104