CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PhysicsTools::Variable::Value Class Reference

Helper class that can contain an identifier-value pair. More...

#include <Variable.h>

Public Member Functions

AtomicId getName () const
 
double getValue () const
 
Valueoperator= (const Value &orig)
 
void setName (AtomicId name)
 
void setValue (double value)
 
 Value ()
 
 Value (const Value &orig)
 
 Value (AtomicId name, double value)
 

Private Attributes

AtomicId name
 
double value
 

Detailed Description

Helper class that can contain an identifier-value pair.

Variable::Value contains an instance of an input variable that is identified by the atomic identifer of the variable and carries an associated double value.

Definition at line 46 of file Variable.h.

Constructor & Destructor Documentation

◆ Value() [1/3]

PhysicsTools::Variable::Value::Value ( )
inline

Definition at line 48 of file Variable.h.

48 {}

◆ Value() [2/3]

PhysicsTools::Variable::Value::Value ( const Value orig)
inline

Definition at line 49 of file Variable.h.

49 : name(orig.name), value(orig.value) {}

◆ Value() [3/3]

PhysicsTools::Variable::Value::Value ( AtomicId  name,
double  value 
)
inline

Definition at line 50 of file Variable.h.

Member Function Documentation

◆ getName()

AtomicId PhysicsTools::Variable::Value::getName ( void  ) const
inline

Definition at line 61 of file Variable.h.

References name.

Referenced by plotting.Plot::draw().

61 { return name; }

◆ getValue()

double PhysicsTools::Variable::Value::getValue ( void  ) const
inline

Definition at line 62 of file Variable.h.

References value.

62 { return value; }

◆ operator=()

Value& PhysicsTools::Variable::Value::operator= ( const Value orig)
inline

Definition at line 52 of file Variable.h.

References name, and value.

52  {
53  name = orig.name;
54  value = orig.value;
55  return *this;
56  }
Definition: value.py:1

◆ setName()

void PhysicsTools::Variable::Value::setName ( AtomicId  name)
inline

Definition at line 58 of file Variable.h.

References name.

58 { this->name = name; }

◆ setValue()

void PhysicsTools::Variable::Value::setValue ( double  value)
inline

Definition at line 59 of file Variable.h.

References value.

59 { this->value = value; }
Definition: value.py:1

Member Data Documentation

◆ name

AtomicId PhysicsTools::Variable::Value::name
private

◆ value

double PhysicsTools::Variable::Value::value
private