AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::Function Struct Reference

Detailed Description

Definition at line 260 of file Expression.h.

Public Member Functions

 Function (const std::string &name, const std::vector< Expression > &args)
 
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.
 
 operator Expression () const
 
complex_t operator() () const override
 Evaluate the expression using the tree, will generally be very slow but ocassionally useful for debugging.
 

Public Attributes

std::string m_name
 
std::vector< Expressionm_args
 
Inheritance diagram for AmpGen::Function:
AmpGen::IExpression

Constructor & Destructor Documentation

◆ Function()

AmpGen::Function::Function ( const std::string & name,
const std::vector< Expression > & args )

Member Function Documentation

◆ operator Expression()

AmpGen::Function::operator Expression ( ) const

◆ operator()()

complex_t AmpGen::Function::operator() ( ) const
inlineoverridevirtual

Implements AmpGen::IExpression.

Definition at line 265 of file Expression.h.

◆ resolve()

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

Implements AmpGen::IExpression.

◆ to_string()

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

Implements AmpGen::IExpression.

Member Data Documentation

◆ m_args

std::vector<Expression> AmpGen::Function::m_args

Definition at line 267 of file Expression.h.

◆ m_name

std::string AmpGen::Function::m_name

Definition at line 266 of file Expression.h.


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