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
TInstructionThe type of instructions to put in each node.
- Inheritance
-
Collection<StackDependency<TInstruction>>StackDependencyCollection<TInstruction>
- Implements
-
IList<StackDependency<TInstruction>>ICollection<StackDependency<TInstruction>>IReadOnlyList<StackDependency<TInstruction>>IReadOnlyCollection<StackDependency<TInstruction>>IEnumerable<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
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
indexintitemStackDependency<TInstruction>
RemoveItem(int)
protected override void RemoveItem(int index)
Parameters
indexint
SetCount(int)
Ensures the node has the provided amount of stack dependencies.
public void SetCount(int count)
Parameters
countintThe new amount of dependencies.
SetItem(int, StackDependency<TInstruction>)
protected override void SetItem(int index, StackDependency<TInstruction> item)
Parameters
indexintitemStackDependency<TInstruction>