Skip to content

scram::mef::ExpressionFormula

CRTP for Expressions with the same formula to evaluate and sample. More...

#include <expression.h>

Inherits from scram::mef::Expression, boost::noncopyable

Public Functions

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.

Additional inherited members

Public Functions inherited from scram::mef::Expression

Name
virtual~Expression() =default
const std::vector< Expression * > &args() const
virtual voidValidate() const<br>Validates the expression.
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 <class T >
class scram::mef::ExpressionFormula;

CRTP for Expressions with the same formula to evaluate and sample.

Template Parameters:

Public Functions Documentation

function value

cpp
inline virtual double value()

Computes the expression with argument expression default values.

Reimplements: scram::mef::Expression::value

function Expression

cpp
explicit Expression(
    std::vector< Expression * > args ={}
)

Constructor for use by derived classes to register their arguments.

Parameters:

  • args Arguments of this expression.

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