1 #ifndef PhysicsTools_Utilities_Expression_h 2 #define PhysicsTools_Utilities_Expression_h 13 virtual std::ostream&
print(std::ostream&
cout)
const = 0;
22 virtual std::ostream&
print(std::ostream&
cout)
const {
return cout << _f; }
34 inline std::ostream&
print(std::ostream&
cout)
const {
return _f->print(cout); }
36 std::auto_ptr<AbsExpression>
_f;
53 virtual double operator()(
double x)
const {
return _f(x); }
65 inline double operator()(
double x)
const {
return (*_f)(x); }
67 std::auto_ptr<AbsFunctExpression>
_f;
virtual std::ostream & print(std::ostream &cout) const
Expression & operator=(const Expression &e)
std::auto_ptr< AbsExpression > _f
virtual double operator()() const
virtual ~AbsFunctExpression()
virtual AbsExpression * clone() const
Expression(const Expression &e)
virtual ~FunctExpressionT()
virtual AbsExpression * clone() const =0
T x() const
Cartesian x coordinate.
FunctExpression & operator=(const FunctExpression &e)
FunctExpression(const FunctExpression &e)
virtual double operator()() const =0
double operator()() const
virtual double operator()(double x) const
std::ostream & print(std::ostream &cout) const
virtual std::ostream & print(std::ostream &cout) const =0
FunctExpressionT(const F &f)
FunctExpression(const F &f)
double operator()(double x) const
std::ostream & operator<<(std::ostream &cout, const Expression &e)
std::auto_ptr< AbsFunctExpression > _f
virtual AbsFunctExpression * clone() const
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)