CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 52 of file Variable.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file Variable.h.

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

Definition at line 55 of file Variable.h.

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

Definition at line 57 of file Variable.h.

Member Function Documentation

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

Definition at line 66 of file Variable.h.

References name.

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

Definition at line 67 of file Variable.h.

References value.

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

Definition at line 60 of file Variable.h.

References name, and value.

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

Definition at line 63 of file Variable.h.

References name.

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

Definition at line 64 of file Variable.h.

References value.

64 { this->value = value; }

Member Data Documentation

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