CMS 3D CMS Logo

Public Member Functions | Private Attributes

PhysicsTools::Variable::Value Class Reference

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

#include <Variable.h>

List of all members.

Public Member Functions

AtomicId getName () const
double getValue () const
Valueoperator= (const Value &orig)
void setName (AtomicId name)
void setValue (double value)
 Value (const Value &orig)
 Value ()
 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.

{}
PhysicsTools::Variable::Value::Value ( const Value orig) [inline]

Definition at line 55 of file Variable.h.

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

Definition at line 57 of file Variable.h.

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

Member Function Documentation

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

Definition at line 66 of file Variable.h.

References name.

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

Definition at line 67 of file Variable.h.

References value.

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

Definition at line 60 of file Variable.h.

References name, and value.

                { 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.

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

Definition at line 64 of file Variable.h.

References value.

{ this->value = value; }

Member Data Documentation

Definition at line 70 of file Variable.h.

Referenced by getName(), operator=(), and setName().

Definition at line 71 of file Variable.h.

Referenced by getValue(), operator=(), and setValue().