Table of Contents

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

TInstruction

The type of data that each node in the graph stores.

Inheritance
RegionNodeCollection<TInstruction>
Implements
IList<ControlFlowNode<TInstruction>>
Inherited Members

Constructors

RegionNodeCollection(IScopeControlFlowRegion<TInstruction>)

Creates a new instance of the RegionNodeCollection<TInstruction> class.

public RegionNodeCollection(IScopeControlFlowRegion<TInstruction> owner)

Parameters

owner IScopeControlFlowRegion<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

items IEnumerable<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

index int
item ControlFlowNode<TInstruction>

RemoveItem(int)

protected override void RemoveItem(int index)

Parameters

index int

SetItem(int, ControlFlowNode<TInstruction>)

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

Parameters

index int
item ControlFlowNode<TInstruction>