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 116 of file JsonMonitorable.h.

Constructor & Destructor Documentation

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

Definition at line 122 of file JsonMonitorable.h.

122 {}

Member Function Documentation

void jsoncollector::DoubleJ::operator= ( double  sth)
inline
void jsoncollector::DoubleJ::resetValue ( )
inlineoverridevirtual
std::string jsoncollector::DoubleJ::toString ( ) const
inlineoverridevirtual

Implements jsoncollector::JsonMonitorable.

Definition at line 124 of file JsonMonitorable.h.

124  {
125  std::stringstream ss;
126  ss << theVar_;
127  return ss.str();
128  }
void jsoncollector::DoubleJ::update ( double  sth)
inline

Definition at line 142 of file JsonMonitorable.h.

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

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), jsoncollector::DataPoint::snapGlobal(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

142  {
143  theVar_=sth;
144  if (updates_ && theVar_!=sth) notSame_=true;
145  updates_++;
146  }
double& jsoncollector::DoubleJ::value ( )
inline

Member Data Documentation

double jsoncollector::DoubleJ::theVar_
private

Definition at line 149 of file JsonMonitorable.h.