Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Diagnostics.Metrics.FixedSizeLabelNameDictionary< TStringSequence, TObjectSequence, TAggregator > Class Template Reference

Public Member Functions

void Collect (Action< LabeledAggregationStatistics > visitFunc)
 
ConcurrentDictionary< TObjectSequence, TAggregator > GetValuesDictionary (in TStringSequence names)
 
bool TryAdd (TKey key, TValue value)
 
bool ContainsKey (TKey key)
 
bool TryRemove (TKey key,[MaybeNullWhen(false)] out TValue value)
 
bool TryRemove (KeyValuePair< TKey, TValue > item)
 
bool TryGetValue (TKey key,[MaybeNullWhen(false)] out TValue value)
 
bool TryUpdate (TKey key, TValue newValue, TValue comparisonValue)
 
void Clear ()
 
KeyValuePair< TKey, TValue >[] ToArray ()
 
IEnumerator< KeyValuePair< TKey, TValue > > GetEnumerator ()
 
TValue GetOrAdd (TKey key, Func< TKey, TValue > valueFactory)
 
TValue GetOrAdd (TKey key, TValue value)
 
TValue GetOrAdd< TArg > (TKey key, Func< TKey, TArg, TValue > valueFactory, TArg factoryArgument)
 
TValue AddOrUpdate< TArg > (TKey key, Func< TKey, TArg, TValue > addValueFactory, Func< TKey, TValue, TArg, TValue > updateValueFactory, TArg factoryArgument)
 
TValue AddOrUpdate (TKey key, Func< TKey, TValue > addValueFactory, Func< TKey, TValue, TValue > updateValueFactory)
 
TValue AddOrUpdate (TKey key, TValue addValue, Func< TKey, TValue, TValue > updateValueFactory)
 

Properties

TValue this[TKey key] [get, set]
 
IEqualityComparer< TKey > Comparer [get]
 
int Count [get]
 
bool IsEmpty [get]
 
ICollection< TKey > Keys [get]
 
IEnumerable< TKey > IReadOnlyDictionary< TKey, TValue >. Keys [get]
 
ICollection IDictionary. Keys [get]
 
ICollection< TValue > Values [get]
 
IEnumerable< TValue > IReadOnlyDictionary< TKey, TValue >. Values [get]
 
ICollection IDictionary. Values [get]
 
bool ICollection< KeyValuePair< TKey, TValue > >. IsReadOnly [get]
 
bool IDictionary. IsReadOnly [get]
 
bool IDictionary. IsFixedSize [get]
 
object? IDictionary. this[object key] [get, set]
 
bool ICollection. IsSynchronized [get]
 
object ICollection. SyncRoot [get]
 
static int DefaultConcurrencyLevel [get]
 

Private Member Functions

void InitializeFromCollection (IEnumerable< KeyValuePair< TKey, TValue > > collection)
 
bool TryRemoveInternal (TKey key,[MaybeNullWhen(false)] out TValue value, bool matchValue, TValue oldValue)
 
bool TryGetValueInternal (TKey key, int hashcode,[MaybeNullWhen(false)] out TValue value)
 
bool TryUpdateInternal (TKey key, int? nullableHashcode, TValue newValue, TValue comparisonValue)
 
void ICollection< KeyValuePair< TKey, TValue > >. CopyTo (KeyValuePair< TKey, TValue >[] array, int index)
 
void ICollection. CopyTo (Array array, int index)
 
void CopyToPairs (KeyValuePair< TKey, TValue >[] array, int index)
 
void CopyToEntries (DictionaryEntry[] array, int index)
 
void CopyToObjects (object[] array, int index)
 
IEnumerator IEnumerable. GetEnumerator ()
 
IDictionaryEnumerator IDictionary. GetEnumerator ()
 
bool TryAddInternal (TKey key, int? nullableHashcode, TValue value, bool updateIfExists, bool acquireLock, out TValue resultingValue)
 
int GetCountInternal ()
 
void IDictionary< TKey, TValue >. Add (TKey key, TValue value)
 
void ICollection< KeyValuePair< TKey, TValue > >. Add (KeyValuePair< TKey, TValue > keyValuePair)
 
void IDictionary. Add (object key, object value)
 
bool IDictionary< TKey, TValue >. Remove (TKey key)
 
bool ICollection< KeyValuePair< TKey, TValue > >. Remove (KeyValuePair< TKey, TValue > keyValuePair)
 
void IDictionary. Remove (object key)
 
bool ICollection< KeyValuePair< TKey, TValue > >. Contains (KeyValuePair< TKey, TValue > keyValuePair)
 
bool IDictionary. Contains (object key)
 
bool AreAllBucketsEmpty ()
 
void GrowTable (Tables tables)
 
void AcquireAllLocks (ref int locksAcquired)
 
void AcquireLocks (int fromInclusive, int toExclusive, ref int locksAcquired)
 
void ReleaseLocks (int fromInclusive, int toExclusive)
 
ReadOnlyCollection< TKey > GetKeys ()
 
ReadOnlyCollection< TValue > GetValues ()
 

Static Private Member Functions

static bool IsValueWriteAtomic ()
 
static void ThrowKeyNotFoundException (TKey key)
 
static void ThrowIfInvalidObjectValue (object value)
 

Private Attributes

volatile Tables _tables
 
readonly IEqualityComparer< TKey > _comparer
 
readonly EqualityComparer< TKey > _defaultComparer
 
readonly bool _growLockArray
 
int _budget
 

Static Private Attributes

static readonly bool s_isValueWriteAtomic
 

Detailed Description

Type Constraints
TStringSequence :IStringSequence 
TStringSequence :IEquatable<TStringSequence> 
TObjectSequence :IObjectSequence 
TObjectSequence :IEquatable<TObjectSequence> 
TAggregator :Aggregator 

Definition at line 6 of file FixedSizeLabelNameDictionary.cs.


The documentation for this class was generated from the following file: