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
funct::Parameter Class Reference

#include <Parameter.h>

Public Member Functions

const std::string & name () const
 
 operator boost::shared_ptr< double > () const
 
 operator double () const
 
double operator() () const
 
double operator() (double) const
 
double operator() (double, 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 
)
inlineexplicit

Definition at line 10 of file Parameter.h.

10  :
11  name_(name), value_(new double(value)) {
12  }
const std::string & name() const
Definition: Parameter.h:13
std::string name_
Definition: Parameter.h:23
boost::shared_ptr< double > value_
Definition: Parameter.h:24
double value() const
Definition: Parameter.h:14

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

20 { return value_; }
boost::shared_ptr< double > value_
Definition: Parameter.h:24
funct::Parameter::operator double ( ) const
inline

Definition at line 16 of file Parameter.h.

References value().

16 { return value(); }
double value() const
Definition: Parameter.h:14
double funct::Parameter::operator() ( ) const
inline

Definition at line 15 of file Parameter.h.

References value_.

15 { return *value_; }
boost::shared_ptr< double > value_
Definition: Parameter.h:24
double funct::Parameter::operator() ( double  ) const
inline

Definition at line 17 of file Parameter.h.

References value_.

17 { return *value_; }
boost::shared_ptr< double > value_
Definition: Parameter.h:24
double funct::Parameter::operator() ( double  ,
double   
) const
inline

Definition at line 18 of file Parameter.h.

References value_.

18 { return *value_; }
boost::shared_ptr< double > value_
Definition: Parameter.h:24
Parameter& funct::Parameter::operator= ( double  value)
inline

Definition at line 21 of file Parameter.h.

References value(), and value_.

21 { *value_ = value; return * this; }
boost::shared_ptr< double > value_
Definition: Parameter.h:24
double value() const
Definition: Parameter.h:14
boost::shared_ptr<double> funct::Parameter::ptr ( ) const
inline

Definition at line 19 of file Parameter.h.

References value_.

Referenced by root::RooFitFunction< X, Expr >::add(), root::RooFitFunction< X, Expr >::RooFitFunction(), and root::tf1_t().

19 { return value_; }
boost::shared_ptr< double > value_
Definition: Parameter.h:24
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=().

14 { return *value_; }
boost::shared_ptr< double > value_
Definition: Parameter.h:24

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().