1 #ifndef PhysicsTools_Parameter_h
2 #define PhysicsTools_Parameter_h
4 #include <boost/shared_ptr.hpp>
16 operator double()
const {
return value(); }
19 boost::shared_ptr<double>
ptr()
const {
return value_; }
20 operator boost::shared_ptr<double>()
const {
return value_; }
28 return cout << p.
name() <<
" = " << p.
value();
Parameter & operator=(double value)
const std::string & name() const
boost::shared_ptr< double > ptr() const
Parameter(const std::string &name="undefined", double value=0)
double operator()() const
boost::shared_ptr< double > value_
double operator()(double, double) const
double operator()(double) const
std::ostream & operator<<(std::ostream &cout, const Expression &e)