Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
InlinedAggregationOperatorEnumerator.cs
Go to the documentation of this file.
3
5
6internal abstract class InlinedAggregationOperatorEnumerator<TIntermediate> : QueryOperatorEnumerator<TIntermediate, int>
7{
8 private readonly int _partitionIndex;
9
10 private bool _done;
11
13
19
20 internal sealed override bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TIntermediate currentElement, ref int currentKey)
21 {
22 if (!_done && MoveNextCore(ref currentElement))
23 {
24 currentKey = _partitionIndex;
25 _done = true;
26 return true;
27 }
28 return false;
29 }
30
31 protected abstract bool MoveNextCore([MaybeNullWhen(false)][AllowNull] ref TIntermediate currentElement);
32}
InlinedAggregationOperatorEnumerator(int partitionIndex, CancellationToken cancellationToken)
bool MoveNextCore([MaybeNullWhen(false)][AllowNull] ref TIntermediate currentElement)
override bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TIntermediate currentElement, ref int currentKey)