AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::Real Class Reference

Detailed Description

Definition at line 401 of file Expression.h.

Public Member Functions

 Real (const Expression &other)
 
virtual std::string to_string (const ASTResolver *resolver=nullptr) const override
 Called to convert the Expression tree into source code.
 
virtual Expression d () const override
 
 operator Expression () const
 
virtual complex_t operator() () const override
 Evaluate the expression using the tree, will generally be very slow but ocassionally useful for debugging.
 
void resolve (ASTResolver &resolver) const override
 Resolve the dependencies of a tree using an ASTResolver, which keeps track of parameters, dependent sub-trees, etc.
 
Expression arg () const
 

Protected Attributes

Expression m_expression
 
Inheritance diagram for AmpGen::Real:
AmpGen::IUnaryExpression AmpGen::IExpression

Constructor & Destructor Documentation

◆ Real()

AmpGen::Real::Real ( const Expression & other)
explicit

Member Function Documentation

◆ arg()

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

Definition at line 371 of file Expression.h.

◆ d()

virtual Expression AmpGen::Real::d ( ) const
overridevirtual

◆ operator Expression()

AmpGen::Real::operator Expression ( ) const

◆ operator()()

virtual complex_t AmpGen::Real::operator() ( ) const
overridevirtual

◆ resolve()

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

Implements AmpGen::IExpression.

◆ to_string()

virtual std::string AmpGen::Real::to_string ( const ASTResolver * resolver = nullptr) const
overridevirtual
Returns
The source code as a string

Implements AmpGen::IExpression.

Member Data Documentation

◆ m_expression

Expression AmpGen::IUnaryExpression::m_expression
protectedinherited

Definition at line 373 of file Expression.h.


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