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

Detailed Description

Definition at line 272 of file Expression.h.

Public Member Functions

 ExpressionPack (const std::vector< Expression > &expressions)
 
 ExpressionPack (const Expression &A, const Expression &B)
 
std::string to_string (const ASTResolver *resolver=nullptr) const override
 Called to convert the Expression tree into source code.
 
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
 Evaluate the expression using the tree, will generally be very slow but ocassionally useful for debugging.
 
 operator Expression () const
 
const std::vector< Expression > & expressions () const
 
Inheritance diagram for AmpGen::ExpressionPack:
AmpGen::IExpression

Constructor & Destructor Documentation

◆ ExpressionPack() [1/2]

AmpGen::ExpressionPack::ExpressionPack ( const std::vector< Expression > & expressions)
inlineexplicit

Definition at line 274 of file Expression.h.

◆ ExpressionPack() [2/2]

AmpGen::ExpressionPack::ExpressionPack ( const Expression & A,
const Expression & B )

Member Function Documentation

◆ expressions()

const std::vector< Expression > & AmpGen::ExpressionPack::expressions ( ) const
inline

Definition at line 280 of file Expression.h.

◆ operator Expression()

AmpGen::ExpressionPack::operator Expression ( ) const

◆ operator()()

complex_t AmpGen::ExpressionPack::operator() ( ) const
overridevirtual

Implements AmpGen::IExpression.

◆ resolve()

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

Implements AmpGen::IExpression.

◆ to_string()

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

Implements AmpGen::IExpression.


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