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 (AtomicId name, double value)
 
 Value (const Value &orig)
 

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.

50 : name(name), value(value) {}

Member Function Documentation

◆ getName()

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

Definition at line 61 of file Variable.h.

61 { return name; }

References name.

Referenced by plotting.Plot::draw().

◆ getValue()

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

Definition at line 62 of file Variable.h.

62 { return value; }

References value.

◆ operator=()

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

Definition at line 52 of file Variable.h.

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

References name, and value.

◆ setName()

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

Definition at line 58 of file Variable.h.

58 { this->name = name; }

References name.

◆ setValue()

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

Definition at line 59 of file Variable.h.

59 { this->value = value; }

References value.

Member Data Documentation

◆ name

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

◆ value

double PhysicsTools::Variable::Value::value
private
PhysicsTools::Variable::Value::value
double value
Definition: Variable.h:66
value
Definition: value.py:1
PhysicsTools::Variable::Value::name
AtomicId name
Definition: Variable.h:65