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::unique_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::unique_ptr<AbsFunctExpression>
_f;
virtual std::ostream & print(std::ostream &cout) const
Expression & operator=(const Expression &e)
std::unique_ptr< AbsFunctExpression > _f
virtual double operator()() const
virtual ~AbsFunctExpression()
virtual AbsExpression * clone() const
Expression(const Expression &e)
virtual ~FunctExpressionT()
virtual AbsExpression * clone() const =0
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)
std::unique_ptr< AbsExpression > _f
double operator()(double x) const
std::ostream & operator<<(std::ostream &cout, const Expression &e)
virtual AbsFunctExpression * clone() const
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)