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 51 of file Variable.h.

Constructor & Destructor Documentation

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

Definition at line 53 of file Variable.h.

Referenced by PhysicsTools::Variable::ValueList::add().

53 {}
PhysicsTools::Variable::Value::Value ( const Value orig)
inline

Definition at line 54 of file Variable.h.

54  :
55  name(orig.name), value(orig.value) {}
PhysicsTools::Variable::Value::Value ( AtomicId  name,
double  value 
)
inline

Definition at line 56 of file Variable.h.

Member Function Documentation

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

Definition at line 65 of file Variable.h.

References name.

Referenced by plotting.Plot::draw().

65 { return name; }
double PhysicsTools::Variable::Value::getValue ( void  ) const
inline

Definition at line 66 of file Variable.h.

References value.

66 { return value; }
Value& PhysicsTools::Variable::Value::operator= ( const Value orig)
inline

Definition at line 59 of file Variable.h.

References name, and value.

60  { name = orig.name; value = orig.value; return *this; }
Definition: value.py:1
void PhysicsTools::Variable::Value::setName ( AtomicId  name)
inline

Definition at line 62 of file Variable.h.

References name.

62 { this->name = name; }
void PhysicsTools::Variable::Value::setValue ( double  value)
inline

Definition at line 63 of file Variable.h.

References value.

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

Member Data Documentation

AtomicId PhysicsTools::Variable::Value::name
private
double PhysicsTools::Variable::Value::value
private