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

Detailed Description

Definition at line 53 of file ExpressionParser.h.

Public Types

typedef std::function< Expression(const Expression &)> unaryFCN
typedef std::function< Expression(const Expression &, const Expression &)> binaryFCN

Public Member Functions

void add_unary (const std::string &name, const unaryFCN &op)
template<typename OP>
void add_unary (const std::string &name)
template<typename... args>
void add_multi_arg (const std::string &name, const std::function< Expression(args...)> &fcn)
void add_binary (const std::string &name, binaryFCN op)

Static Public Member Functions

static Expression parse (const std::string &str, const MinuitParameterSet *mps=nullptr)
static Expression parse (std::vector< std::string >::const_iterator begin, std::vector< std::string >::const_iterator end, const MinuitParameterSet *mps=nullptr)
static ExpressionParser * getMe ()

Static Public Attributes

static ExpressionParser * gExpressionParser

Member Typedef Documentation

◆ binaryFCN

typedef std::function<Expression(const Expression &, const Expression &)> AmpGen::ExpressionParser::binaryFCN

Definition at line 56 of file ExpressionParser.h.

◆ unaryFCN

typedef std::function<Expression(const Expression &)> AmpGen::ExpressionParser::unaryFCN

Definition at line 55 of file ExpressionParser.h.

Member Function Documentation

◆ add_binary()

void AmpGen::ExpressionParser::add_binary ( const std::string & name,
binaryFCN op )
inline

Definition at line 66 of file ExpressionParser.h.

◆ add_multi_arg()

template<typename... args>
void AmpGen::ExpressionParser::add_multi_arg ( const std::string & name,
const std::function< Expression(args...)> & fcn )
inline

Definition at line 62 of file ExpressionParser.h.

◆ add_unary() [1/2]

template<typename OP>
void AmpGen::ExpressionParser::add_unary ( const std::string & name)
inline

Definition at line 59 of file ExpressionParser.h.

◆ add_unary() [2/2]

void AmpGen::ExpressionParser::add_unary ( const std::string & name,
const unaryFCN & op )
inline

Definition at line 58 of file ExpressionParser.h.

◆ getMe()

ExpressionParser * AmpGen::ExpressionParser::getMe ( )
inlinestatic

Definition at line 72 of file ExpressionParser.h.

◆ parse() [1/2]

Expression AmpGen::ExpressionParser::parse ( const std::string & str,
const MinuitParameterSet * mps = nullptr )
static

◆ parse() [2/2]

Expression AmpGen::ExpressionParser::parse ( std::vector< std::string >::const_iterator begin,
std::vector< std::string >::const_iterator end,
const MinuitParameterSet * mps = nullptr )
static

Member Data Documentation

◆ gExpressionParser

ExpressionParser* AmpGen::ExpressionParser::gExpressionParser
static

Definition at line 71 of file ExpressionParser.h.


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