Interface INotifyExpression<T>
Represents a typed expression with additional information on the program flow
Inherited Members
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public interface INotifyExpression<out T> : INotifyValue<T>, INotifyExpression, INotifiable, IDisposable
Type Parameters
Name | Description |
---|---|
T | The type of the expression |
Methods
| Edit this page View SourceApplyParameters(IDictionary<string, object>, IDictionary<INotifiable, INotifiable>)
Applies the given set of parameters to the expression
Declaration
INotifyExpression<out T> ApplyParameters(IDictionary<string, object> parameters, IDictionary<INotifiable, INotifiable> trace)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, object> | parameters | A set of parameter values |
IDictionary<INotifiable, INotifiable> | trace | A trace to make sure parameters are only applied once for every DDG node |
Returns
Type | Description |
---|---|
INotifyExpression<T> | A new expression with all parameter placeholders replaced with the parameter values |
Remarks
In case that the current expression is parameter free, it simply returns itself
Reduce()
Simplifies the current expression
Declaration
INotifyExpression<out T> Reduce()
Returns
Type | Description |
---|---|
INotifyExpression<T> | A simpler expression repüresenting the same incremental value (e.g. a constant if this expression can be constant), otherwise itself |