CMS 3D CMS Logo

Public Member Functions | Private Attributes

funct::Parameter Class Reference

#include <Parameter.h>

List of all members.

Public Member Functions

const std::string & name () const
 operator boost::shared_ptr< double > () const
 operator double () const
double operator() () const
double operator() (double, double) const
double operator() (double) const
Parameteroperator= (double value)
 Parameter (const std::string &name="undefined", double value=0)
boost::shared_ptr< double > ptr () const
double value () const

Private Attributes

std::string name_
boost::shared_ptr< double > value_

Detailed Description

Definition at line 8 of file Parameter.h.


Constructor & Destructor Documentation

funct::Parameter::Parameter ( const std::string &  name = "undefined",
double  value = 0 
) [inline, explicit]

Definition at line 10 of file Parameter.h.

                                                                               :
      name_(name), value_(new double(value)) {
    }

Member Function Documentation

const std::string& funct::Parameter::name ( void  ) const [inline]
funct::Parameter::operator boost::shared_ptr< double > ( ) const [inline]

Definition at line 20 of file Parameter.h.

References value_.

{ return value_; }
funct::Parameter::operator double ( ) const [inline]

Definition at line 16 of file Parameter.h.

References value().

{ return value(); }
double funct::Parameter::operator() ( double  ) const [inline]

Definition at line 17 of file Parameter.h.

References value_.

{ return *value_; }
double funct::Parameter::operator() ( double  ,
double   
) const [inline]

Definition at line 18 of file Parameter.h.

References value_.

{ return *value_; }
double funct::Parameter::operator() ( ) const [inline]

Definition at line 15 of file Parameter.h.

References value_.

{ return *value_; }
Parameter& funct::Parameter::operator= ( double  value) [inline]

Definition at line 21 of file Parameter.h.

References value(), and value_.

{ *value_ = value; return * this; }
boost::shared_ptr<double> funct::Parameter::ptr ( ) const [inline]
double funct::Parameter::value ( void  ) const [inline]

Definition at line 14 of file Parameter.h.

References value_.

Referenced by operator double(), funct::operator<<(), and operator=().

{ return *value_; }

Member Data Documentation

std::string funct::Parameter::name_ [private]

Definition at line 23 of file Parameter.h.

Referenced by name().

boost::shared_ptr<double> funct::Parameter::value_ [private]

Definition at line 24 of file Parameter.h.

Referenced by operator boost::shared_ptr< double >(), operator()(), operator=(), ptr(), and value().