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
TInstructionThe type of data that each node in the graph stores.
TRegionThe type of the region to store.
- Inheritance
-
Collection<TRegion>RegionCollection<TInstruction, TRegion>
- Implements
-
IList<TRegion>ICollection<TRegion>IReadOnlyList<TRegion>IReadOnlyCollection<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
ownerIControlFlowRegion<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
indexintitemTRegion
RemoveItem(int)
protected override void RemoveItem(int index)
Parameters
indexint
SetItem(int, TRegion)
protected override void SetItem(int index, TRegion item)
Parameters
indexintitemTRegion