Table of Contents

Class DataSource<TInstruction>

Namespace
Echo.DataFlow
Assembly
Echo.DataFlow.dll

Represents a data source in a data flow graph.

public abstract class DataSource<TInstruction> where TInstruction : notnull

Type Parameters

TInstruction

The type of instruction stored in each data flow node.

Inheritance
DataSource<TInstruction>
Derived
Inherited Members

Constructors

DataSource(DataFlowNode<TInstruction>)

Creates a new data source.

protected DataSource(DataFlowNode<TInstruction> node)

Parameters

node DataFlowNode<TInstruction>

The node producing the data.

Properties

Node

Gets the data flow node that produced the data.

public DataFlowNode<TInstruction> Node { get; }

Property Value

DataFlowNode<TInstruction>

Type

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

public abstract DataDependencyType Type { get; }

Property Value

DataDependencyType

Methods

Equals(DataSource<TInstruction>)

Determines whether the data sources are considered equal.

protected virtual bool Equals(DataSource<TInstruction> other)

Parameters

other DataSource<TInstruction>

The other data source.

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(DataSource<TInstruction>?, DataSource<TInstruction>?)

Determines whether the data sources are considered equal.

public static bool operator ==(DataSource<TInstruction>? a, DataSource<TInstruction>? b)

Parameters

a DataSource<TInstruction>

The first data source.

b DataSource<TInstruction>

The second data source.

Returns

bool

true if they are considered equal, false otherwise.

operator !=(DataSource<TInstruction>, DataSource<TInstruction>)

Determines whether the data sources are not considered equal.

public static bool operator !=(DataSource<TInstruction> a, DataSource<TInstruction> b)

Parameters

a DataSource<TInstruction>

The first data source.

b DataSource<TInstruction>

The second data source.

Returns

bool

true if they are not considered equal, false otherwise.