Table of Contents

Class StackDependencyCollection<TInstruction>

Namespace
Echo.DataFlow.Collections
Assembly
Echo.DataFlow.dll

Represents a collection of dependencies allocated on a stack for a node in a data flow graph.

public class StackDependencyCollection<TInstruction> : Collection<StackDependency<TInstruction>>, IList<StackDependency<TInstruction>>, ICollection<StackDependency<TInstruction>>, IReadOnlyList<StackDependency<TInstruction>>, IReadOnlyCollection<StackDependency<TInstruction>>, IEnumerable<StackDependency<TInstruction>>, IList, ICollection, IEnumerable where TInstruction : notnull

Type Parameters

TInstruction

The type of instructions to put in each node.

Inheritance
StackDependencyCollection<TInstruction>
Implements
IList<StackDependency<TInstruction>>
Inherited Members

Properties

EdgeCount

Gets the total number of edges that are stored in this dependency collection.

public int EdgeCount { get; }

Property Value

int

Methods

ClearItems()

protected override void ClearItems()

GetEnumerator()

Gets the enumerator for this stack dependency collection.

public StackDependencyCollection<TInstruction>.Enumerator GetEnumerator()

Returns

StackDependencyCollection<TInstruction>.Enumerator

InsertItem(int, StackDependency<TInstruction>)

protected override void InsertItem(int index, StackDependency<TInstruction> item)

Parameters

index int
item StackDependency<TInstruction>

RemoveItem(int)

protected override void RemoveItem(int index)

Parameters

index int

SetCount(int)

Ensures the node has the provided amount of stack dependencies.

public void SetCount(int count)

Parameters

count int

The new amount of dependencies.

SetItem(int, StackDependency<TInstruction>)

protected override void SetItem(int index, StackDependency<TInstruction> item)

Parameters

index int
item StackDependency<TInstruction>