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 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. |
Additional inherited members
Public Functions inherited from scram::mef::Expression
| Name | |
|---|---|
| virtual | ~Expression() =default |
| const std::vector< Expression * > & | args() const |
| virtual void | Validate() const<br>Validates the expression. |
| 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 <class T >
class scram::mef::ExpressionFormula;CRTP for Expressions with the same formula to evaluate and sample.
Template Parameters:
- T The Expression type with Compute function.
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
