Struct TriCornerMap<TData>.Enumerator
Value-type enumerator for TriCornerMap<TData> that yields all stored corner entries without heap allocation.
Inherited Members
Namespace: Scylla.Core.Structures
Assembly: ScyllaCore.dll
Syntax
public struct TriCornerMap<TData>.Enumerator
Remarks
The enumerator wraps the underlying Dictionary<TKey, TValue>.Enumerator
and exposes each entry as a (TriCornerCoord Coord, TData Value) tuple via the
Current property. Mutating the map during enumeration results in
undefined behaviour.
Constructors
Enumerator(Enumerator)
Initializes a new TriCornerMap<TData>.Enumerator wrapping the given dictionary enumerator.
Declaration
public Enumerator(Dictionary<TriCornerCoord, TData>.Enumerator inner)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<TriCornerCoord, TData>.Enumerator | inner | The dictionary enumerator produced by the internal storage dictionary. |
Properties
Current
Gets the corner entry at the current position of the enumerator.
Declaration
public readonly (TriCornerCoord Coord, TData Value) Current { get; }
Property Value
| Type | Description |
|---|---|
| (TriCornerCoord Coord, TData Value) | A tuple of the TriCornerCoord key and the associated
|
Methods
MoveNext()
Advances the enumerator to the next corner entry.
Declaration
public bool MoveNext()
Returns
| Type | Description |
|---|---|
| bool |
|