Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ForAllOperator.cs
Go to the documentation of this file.
4
6
7internal sealed class ForAllOperator<TInput> : UnaryQueryOperator<TInput, TInput>
8{
9 private sealed class ForAllEnumerator<TKey> : QueryOperatorEnumerator<TInput, int>
10 {
12
14
16
23
24 internal override bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TInput currentElement, ref int currentKey)
25 {
26 TInput currentElement2 = default(TInput);
27 TKey currentKey2 = default(TKey);
28 int num = 0;
30 {
31 if ((num++ & 0x3F) == 0)
32 {
34 }
36 }
37 return false;
38 }
39
40 protected override void Dispose(bool disposing)
41 {
43 }
44 }
45
47
48 internal override bool LimitsParallelism => false;
49
55
66
67 internal override QueryResults<TInput> Open(QuerySettings settings, bool preferStriping)
68 {
71 }
72
74 {
75 int partitionCount = inputStream.PartitionCount;
77 for (int i = 0; i < partitionCount; i++)
78 {
80 }
82 }
83
84 [ExcludeFromCodeCoverage(Justification = "AsSequentialQuery is not supported on ForAllOperator")]
86 {
87 throw new InvalidOperationException();
88 }
89}
override bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TInput currentElement, ref int currentKey)
ForAllEnumerator(QueryOperatorEnumerator< TInput, TKey > source, Action< TInput > elementAction, CancellationToken cancellationToken)
readonly QueryOperatorEnumerator< TInput, TKey > _source
ForAllOperator(IEnumerable< TInput > child, Action< TInput > elementAction)
readonly Action< TInput > _elementAction
override void WrapPartitionedStream< TKey >(PartitionedStream< TInput, TKey > inputStream, IPartitionedStreamRecipient< TInput > recipient, bool preferStriping, QuerySettings settings)
override QueryResults< TInput > Open(QuerySettings settings, bool preferStriping)
override IEnumerable< TInput > AsSequentialQuery(CancellationToken token)
static void LogicalQueryExecutionEnd(int queryID)
static void LogicalQueryExecutionBegin(int queryID)
bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TElement currentElement, [AllowNull] ref TKey currentKey)