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>double | Compute(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 double | value()<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 void | Validate() const<br>Validates the expression. |
| virtual double | value() =0 |
| virtual Interval | interval() |
| virtual bool | IsDeviate()<br>Determines if the value of the expression contains deviate expressions. |
| double | Sample() |
| void | Reset()<br>This routine resets the sampling to get new values. |
Protected Functions inherited from scram::mef::Expression
| Name | |
|---|---|
| void | AddArg(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:
- ValidityError The number of arguments is invalid.
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
