Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
JoinHashLookupBuilder.cs
Go to the documentation of this file.
3
5
6internal sealed class JoinHashLookupBuilder<TElement, TOrderKey, THashKey> : HashLookupBuilder<TElement, TOrderKey, THashKey>
7{
8 private struct JoinBaseHashBuilder : IBaseHashBuilder<TElement, TOrderKey>
9 {
11
16
17 public bool Add(THashKey hashKey, TElement element, TOrderKey orderKey)
18 {
21 {
24 return false;
25 }
26 if (value.Add(element, orderKey))
27 {
29 }
30 return true;
31 }
32 }
33
48
50
52
58
65
66 protected override void Dispose(bool disposing)
67 {
68 _dataSource.Dispose();
69 }
70}
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
JoinHashLookup(HashLookup< THashKey, HashLookupValueList< TElement, TOrderKey > > baseLookup)
readonly HashLookup< THashKey, HashLookupValueList< TElement, TOrderKey > > _base
override bool TryGetValue(THashKey key, ref HashLookupValueList< TElement, TOrderKey > value)
readonly QueryOperatorEnumerator< Pair< TElement, THashKey >, TOrderKey > _dataSource
readonly IEqualityComparer< THashKey > _keyComparer
override HashJoinHashLookup< THashKey, TElement, TOrderKey > BuildHashLookup(CancellationToken cancellationToken)
JoinHashLookupBuilder(QueryOperatorEnumerator< Pair< TElement, THashKey >, TOrderKey > dataSource, IEqualityComparer< THashKey > keyComparer)
readonly HashLookup< THashKey, HashLookupValueList< TElement, TOrderKey > > _base
JoinBaseHashBuilder(HashLookup< THashKey, HashLookupValueList< TElement, TOrderKey > > baseLookup)
bool Add(THashKey hashKey, TElement element, TOrderKey orderKey)