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

Detailed Description

Definition at line 51 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 ExpressionParsergetMe ()
 

Static Public Attributes

static ExpressionParsergExpressionParser
 

Member Typedef Documentation

◆ binaryFCN

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

Definition at line 55 of file ExpressionParser.h.

◆ unaryFCN

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

Definition at line 54 of file ExpressionParser.h.

Member Function Documentation

◆ add_binary()

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

Definition at line 67 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 58 of file ExpressionParser.h.

◆ add_unary() [2/2]

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

Definition at line 57 of file ExpressionParser.h.

◆ getMe()

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

Definition at line 74 of file ExpressionParser.h.

◆ parse() [1/2]

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

◆ parse() [2/2]

static 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 73 of file ExpressionParser.h.


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