Class TransformProcessor<TIn, TOut>
- Namespace
- FlowGraph.Core.DataFlow.Processors
- Assembly
- FlowGraph.Core.dll
A processor that transforms a value using a function.
public class TransformProcessor<TIn, TOut> : NodeProcessor, INodeProcessor
Type Parameters
TInThe input type.
TOutThe output type.
- Inheritance
-
TransformProcessor<TIn, TOut>
- Implements
- Inherited Members
Constructors
TransformProcessor(Node, Func<TIn?, TOut?>, string, string)
Creates a new transform processor.
public TransformProcessor(Node node, Func<TIn?, TOut?> transform, string inputPortId = "in", string outputPortId = "out")
Parameters
nodeNodeThe node.
transformFunc<TIn, TOut>The transformation function.
inputPortIdstringThe input port ID.
outputPortIdstringThe output port ID.
Properties
InputValue
Gets the input value.
public TIn? InputValue { get; }
Property Value
- TIn
OutputValue
Gets the output value.
public TOut? OutputValue { get; }
Property Value
- TOut
Methods
Process()
Processes inputs and updates outputs. Called automatically when any input changes (if auto-execute is enabled).
public override void Process()