![]() |
AmpGen 2.1
|
those that take a pair of arguments (such as \(+,-,\times,/\))
Definition at line 287 of file Expression.h.
Public Member Functions | |
IBinaryExpression (const Expression &l, const Expression &r) | |
IBinaryExpression (const Expression &pack) | |
void | resolve (ASTResolver &resolver) const override |
Resolve the dependencies of a tree using an ASTResolver, which keeps track of parameters, dependent sub-trees, etc. | |
complex_t | operator() () const override=0 |
Evaluate the expression using the tree, will generally be very slow but ocassionally useful for debugging. | |
Expression | l () const |
Expression | r () const |
virtual std::string | to_string (const ASTResolver *resolver=nullptr) const =0 |
Called to convert the Expression tree into source code. | |
Protected Attributes | |
Expression | lval |
Expression | rval |
|
inline |
Definition at line 289 of file Expression.h.
|
inline |
Definition at line 290 of file Expression.h.
|
inline |
Definition at line 306 of file Expression.h.
|
overridepure virtual |
Implements AmpGen::IExpression.
Implemented in AmpGen::And, AmpGen::ATan2, AmpGen::Divide, AmpGen::Equal, AmpGen::Fmod, AmpGen::GreaterThan, AmpGen::GreaterThanEqualTo, AmpGen::LessThan, AmpGen::LessThanEqualTo, AmpGen::Or, AmpGen::Pow, AmpGen::Product, AmpGen::Sub, and AmpGen::Sum.
|
inline |
Definition at line 307 of file Expression.h.
|
overridevirtual |
resolver | resolver object to use |
Implements AmpGen::IExpression.
|
pure virtualinherited |
Implemented in AmpGen::Abs, AmpGen::ACos, AmpGen::And, AmpGen::Array, AmpGen::ASin, AmpGen::ATan2, AmpGen::ATan, AmpGen::ComplexParameter, AmpGen::Conj, AmpGen::Constant, AmpGen::Cos, AmpGen::Divide, AmpGen::Equal, AmpGen::Exp, AmpGen::ExpressionPack, AmpGen::Fmod, AmpGen::Function, AmpGen::GreaterThan, AmpGen::GreaterThanEqualTo, AmpGen::Imag, AmpGen::ISqrt, AmpGen::LambdaExpression, AmpGen::LessThan, AmpGen::LessThanEqualTo, AmpGen::LGamma, AmpGen::Log, AmpGen::MinuitParameterLink, AmpGen::Norm, AmpGen::Or, AmpGen::Parameter, AmpGen::Pow, AmpGen::Product, AmpGen::Real, AmpGen::Sin, AmpGen::Spline, AmpGen::Sqrt, AmpGen::Sub, AmpGen::SubTree, AmpGen::Sum, AmpGen::Tan, AmpGen::TensorExpression, and AmpGen::Ternary.
|
protected |
Definition at line 309 of file Expression.h.
|
protected |
Definition at line 310 of file Expression.h.