Table of Contents

Class RegionCollection<TInstruction, TRegion>

Namespace
Echo.ControlFlow.Collections
Assembly
Echo.ControlFlow.dll

Represents a collection of regions found in a control flow graph.

public class RegionCollection<TInstruction, TRegion> : Collection<TRegion>, IList<TRegion>, ICollection<TRegion>, IReadOnlyList<TRegion>, IReadOnlyCollection<TRegion>, IEnumerable<TRegion>, IList, ICollection, IEnumerable where TInstruction : notnull where TRegion : ControlFlowRegion<TInstruction>

Type Parameters

TInstruction

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

TRegion

The type of the region to store.

Inheritance
Collection<TRegion>
RegionCollection<TInstruction, TRegion>
Implements
IList<TRegion>
ICollection<TRegion>
IReadOnlyList<TRegion>
IEnumerable<TRegion>
Inherited Members

Constructors

RegionCollection(IControlFlowRegion<TInstruction>)

Creates a new instance of the RegionCollection<TInstruction, TRegion> class.

public RegionCollection(IControlFlowRegion<TInstruction> owner)

Parameters

owner IControlFlowRegion<TInstruction>

The owner of the sub regions.

Methods

ClearItems()

protected override void ClearItems()

InsertItem(int, TRegion)

protected override void InsertItem(int index, TRegion item)

Parameters

index int
item TRegion

RemoveItem(int)

protected override void RemoveItem(int index)

Parameters

index int

SetItem(int, TRegion)

protected override void SetItem(int index, TRegion item)

Parameters

index int
item TRegion