Table of Contents

Class TupleTypedArrayWrapper<T>

Namespace
Ubiquity.NET.Llvm.DebugInfo
Assembly
Ubiquity.NET.Llvm.dll

Generic wrapper to treat an MDTuple as an array of elements of a specific type

public class TupleTypedArrayWrapper<T> : IReadOnlyList<T?>, IReadOnlyCollection<T?>, IEnumerable<T?>, IEnumerable where T : IrMetadata

Type Parameters

T

Type of elements

Inheritance
TupleTypedArrayWrapper<T>
Implements
Derived
Inherited Members

Remarks

This implements a façade pattern that presents an IReadOnlyCollection<T> for the operands of an MDTuple. This allows treating the tuple like an array of nodes of a particular type.

Properties

Count

Gets the count of operands in the MDTuple

this[int]

Gets an item from the tuple

Tuple

Gets the underlying tuple for this wrapper

Methods

GetEnumerator()

Gets an enumerator for the items in the MDTuple