Skip to content

scram::mef::ExternExpression

Expression evaluating an extern function with expression arguments. More...

#include <extern.h>

Inherits from scram::mef::ExpressionFormula< ExternExpression< R, Args... > >, scram::mef::Expression, boost::noncopyable

Public Functions

Name
ExternExpression(const ExternFunction< R, Args... > * extern_function, std::vector< Expression * > args)
template <typename F > <br>doubleCompute(F && eval)<br>Computes the extern function with the given evaluator for arguments.

Additional inherited members

Public Functions inherited from scram::mef::ExpressionFormula< ExternExpression< R, Args... > >

Name
virtual doublevalue()<br>Computes the expression with argument expression default values.
Expression(std::vector< Expression * > args ={})<br>Constructor for use by derived classes to register their arguments.

Public Functions inherited from scram::mef::Expression

Name
Expression(std::vector< Expression * > args ={})<br>Constructor for use by derived classes to register their arguments.
virtual~Expression() =default
const std::vector< Expression * > &args() const
virtual voidValidate() const<br>Validates the expression.
virtual doublevalue() =0
virtual Intervalinterval()
virtual boolIsDeviate()<br>Determines if the value of the expression contains deviate expressions.
doubleSample()
voidReset()<br>This routine resets the sampling to get new values.

Protected Functions inherited from scram::mef::Expression

Name
voidAddArg(Expression * arg)<br>Registers an additional argument expression.

Detailed Description

cpp
template <typename R ,
typename... Args>
class scram::mef::ExternExpression;

Expression evaluating an extern function with expression arguments.

Template Parameters:

  • R Numeric return type.
  • Args Numeric argument types.

Public Functions Documentation

function ExternExpression

cpp
inline explicit ExternExpression(
    const ExternFunction< R, Args... > * extern_function,
    std::vector< Expression * > args
)

Parameters:

  • extern_function The library function.
  • args The argument expression for the function.

Exceptions:

function Compute

cpp
template <typename F >
inline double Compute(
    F && eval
)

Computes the extern function with the given evaluator for arguments.


Updated on 2025-11-11 at 16:51:08 +0000