Table of Contents

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

TIn

The input type.

TOut

The 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

node Node

The node.

transform Func<TIn, TOut>

The transformation function.

inputPortId string

The input port ID.

outputPortId string

The 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()