Table of Contents

Class VariableDataSource<TInstruction>

Namespace
Echo.DataFlow
Assembly
Echo.DataFlow.dll

Represents a data source that refers to a variable value assigned by a node in a data flow graph.

public class VariableDataSource<TInstruction> : DataSource<TInstruction> where TInstruction : notnull

Type Parameters

TInstruction

The type of data stored in each data flow node.

Inheritance
DataSource<TInstruction>
VariableDataSource<TInstruction>
Inherited Members

Constructors

VariableDataSource(DataFlowNode<TInstruction>, IVariable)

Creates a new variable data source referencing a variable value assigned by the provided node.

public VariableDataSource(DataFlowNode<TInstruction> node, IVariable variable)

Parameters

node DataFlowNode<TInstruction>

The node assigning the value.

variable IVariable

The variable that was assigned a value.

Properties

Type

Gets the type of data dependency that this data source encodes.

public override DataDependencyType Type { get; }

Property Value

DataDependencyType

Variable

Gets the variable that was referenced by Node.

public IVariable Variable { get; }

Property Value

IVariable

Methods

ToString()

public override string ToString()

Returns

string