Class RegionNodeCollection<TInstruction>
- Namespace
- Echo.ControlFlow.Collections
- Assembly
- Echo.ControlFlow.dll
Represents a collection of nodes that are put into a control flow region.
public class RegionNodeCollection<TInstruction> : Collection<ControlFlowNode<TInstruction>>, IList<ControlFlowNode<TInstruction>>, ICollection<ControlFlowNode<TInstruction>>, IReadOnlyList<ControlFlowNode<TInstruction>>, IReadOnlyCollection<ControlFlowNode<TInstruction>>, IEnumerable<ControlFlowNode<TInstruction>>, IList, ICollection, IEnumerable where TInstruction : notnull
Type Parameters
TInstructionThe type of data that each node in the graph stores.
- Inheritance
-
Collection<ControlFlowNode<TInstruction>>RegionNodeCollection<TInstruction>
- Implements
-
IList<ControlFlowNode<TInstruction>>ICollection<ControlFlowNode<TInstruction>>IReadOnlyList<ControlFlowNode<TInstruction>>IReadOnlyCollection<ControlFlowNode<TInstruction>>IEnumerable<ControlFlowNode<TInstruction>>
- Inherited Members
Constructors
RegionNodeCollection(IScopeControlFlowRegion<TInstruction>)
Creates a new instance of the RegionNodeCollection<TInstruction> class.
public RegionNodeCollection(IScopeControlFlowRegion<TInstruction> owner)
Parameters
ownerIScopeControlFlowRegion<TInstruction>The region owning the collection of nodes.
Methods
AddRange(IEnumerable<ControlFlowNode<TInstruction>>)
Adds a collection of nodes to the node collection.
public void AddRange(IEnumerable<ControlFlowNode<TInstruction>> items)
Parameters
itemsIEnumerable<ControlFlowNode<TInstruction>>The nodes to add.
ClearItems()
protected override void ClearItems()
InsertItem(int, ControlFlowNode<TInstruction>)
protected override void InsertItem(int index, ControlFlowNode<TInstruction> item)
Parameters
indexintitemControlFlowNode<TInstruction>
RemoveItem(int)
protected override void RemoveItem(int index)
Parameters
indexint
SetItem(int, ControlFlowNode<TInstruction>)
protected override void SetItem(int index, ControlFlowNode<TInstruction> item)
Parameters
indexintitemControlFlowNode<TInstruction>