AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::IUnaryExpression Class Referenceabstract

Detailed Description

those that take a single argument.

Definition at line 365 of file Expression.h.

Public Member Functions

 IUnaryExpression (const Expression &other)
 
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.
 
virtual Expression d () const =0
 
Expression arg () const
 
virtual std::string to_string (const ASTResolver *resolver=nullptr) const =0
 Called to convert the Expression tree into source code.
 

Protected Attributes

Expression m_expression
 
Inheritance diagram for AmpGen::IUnaryExpression:
AmpGen::IExpression AmpGen::ACos AmpGen::ASin AmpGen::ATan AmpGen::Abs AmpGen::Conj AmpGen::Cos AmpGen::Exp AmpGen::ISqrt AmpGen::Imag AmpGen::LGamma AmpGen::Log AmpGen::Norm AmpGen::Real AmpGen::Sin AmpGen::Sqrt AmpGen::Tan

Constructor & Destructor Documentation

◆ IUnaryExpression()

AmpGen::IUnaryExpression::IUnaryExpression ( const Expression & other)
inline

Definition at line 367 of file Expression.h.

Member Function Documentation

◆ arg()

Expression AmpGen::IUnaryExpression::arg ( ) const
inline

Definition at line 371 of file Expression.h.

◆ d()

◆ operator()()

◆ resolve()

void AmpGen::IUnaryExpression::resolve ( ASTResolver & resolver) const
overridevirtual
Parameters
resolverresolver object to use

Implements AmpGen::IExpression.

◆ to_string()

Member Data Documentation

◆ m_expression

Expression AmpGen::IUnaryExpression::m_expression
protected

Definition at line 373 of file Expression.h.


The documentation for this class was generated from the following file: