Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
InlinedAggregationOperatorEnumerator.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
using
System.Threading
;
3
4
namespace
System.Linq.Parallel
;
5
6
internal
abstract
class
InlinedAggregationOperatorEnumerator
<TIntermediate> :
QueryOperatorEnumerator
<TIntermediate, int>
7
{
8
private
readonly
int
_partitionIndex
;
9
10
private
bool
_done
;
11
12
protected
CancellationToken
_cancellationToken
;
13
14
internal
InlinedAggregationOperatorEnumerator
(
int
partitionIndex,
CancellationToken
cancellationToken
)
15
{
16
_partitionIndex
= partitionIndex;
17
_cancellationToken
=
cancellationToken
;
18
}
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
}
System.Linq.Parallel.InlinedAggregationOperatorEnumerator._cancellationToken
CancellationToken _cancellationToken
Definition
InlinedAggregationOperatorEnumerator.cs:12
System.Linq.Parallel.InlinedAggregationOperatorEnumerator.InlinedAggregationOperatorEnumerator
InlinedAggregationOperatorEnumerator(int partitionIndex, CancellationToken cancellationToken)
Definition
InlinedAggregationOperatorEnumerator.cs:14
System.Linq.Parallel.InlinedAggregationOperatorEnumerator._done
bool _done
Definition
InlinedAggregationOperatorEnumerator.cs:10
System.Linq.Parallel.InlinedAggregationOperatorEnumerator.MoveNextCore
bool MoveNextCore([MaybeNullWhen(false)][AllowNull] ref TIntermediate currentElement)
System.Linq.Parallel.InlinedAggregationOperatorEnumerator._partitionIndex
readonly int _partitionIndex
Definition
InlinedAggregationOperatorEnumerator.cs:8
System.Linq.Parallel.InlinedAggregationOperatorEnumerator.MoveNext
override bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TIntermediate currentElement, ref int currentKey)
Definition
InlinedAggregationOperatorEnumerator.cs:20
System.Linq.Parallel.InlinedAggregationOperatorEnumerator
Definition
InlinedAggregationOperatorEnumerator.cs:7
System.Linq.Parallel.QueryOperatorEnumerator
Definition
QueryOperatorEnumerator.cs:8
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Linq.Parallel
Definition
AnyAllSearchOperator.cs:5
System.Threading
Definition
TaskToApm.cs:3
System.ExceptionArgument.cancellationToken
@ cancellationToken
System.Threading.CancellationToken
Definition
CancellationToken.cs:8
source
System.Linq.Parallel
System.Linq.Parallel
InlinedAggregationOperatorEnumerator.cs
Generated by
1.10.0