Space Engineers
Classes | Public Member Functions | Properties | List of all members
VRage.Collections.MyConcurrentDictionary< TKey, TValue > Class Template Reference

Simple thread-safe queue. Uses spin-lock More...

Inheritance diagram for VRage.Collections.MyConcurrentDictionary< TKey, TValue >:

Public Member Functions

 MyConcurrentDictionary (IEqualityComparer< TKey > comparer)
 
 MyConcurrentDictionary (int capacity=0, IEqualityComparer< TKey > comparer=null)
 
TValue ChangeKey (TKey oldKey, TKey newKey)
 
void Clear ()
 
void Add (TKey key, TValue value)
 
bool TryAdd (TKey key, TValue value)
 
bool ContainsKey (TKey key)
 
bool ContainsValue (TValue value)
 
bool Remove (TKey key)
 
bool TryGetValue (TKey key, out TValue value)
 
void GetValues (List< TValue > result)
 
TValue GetValueOrDefault (TKey key, TValue defaultValue)
 
KeyValuePair< TKey, TValue > FirstPair ()
 
IEnumerator< KeyValuePair< TKey, TValue > > GetEnumerator ()
 

Properties

int Count [get]
 
TValue this[TKey key] [get, set]
 

Detailed Description

Simple thread-safe queue. Uses spin-lock

Definition at line 13 of file MyConcurrentDictionary.cs.

Constructor & Destructor Documentation

VRage.Collections.MyConcurrentDictionary< TKey, TValue >.MyConcurrentDictionary ( IEqualityComparer< TKey >  comparer)
inline

Definition at line 47 of file MyConcurrentDictionary.cs.

VRage.Collections.MyConcurrentDictionary< TKey, TValue >.MyConcurrentDictionary ( int  capacity = 0,
IEqualityComparer< TKey >  comparer = null 
)
inline

Definition at line 52 of file MyConcurrentDictionary.cs.

Member Function Documentation

void VRage.Collections.MyConcurrentDictionary< TKey, TValue >.Add ( TKey  key,
TValue  value 
)
inline

Definition at line 76 of file MyConcurrentDictionary.cs.

TValue VRage.Collections.MyConcurrentDictionary< TKey, TValue >.ChangeKey ( TKey  oldKey,
TKey  newKey 
)
inline

Definition at line 57 of file MyConcurrentDictionary.cs.

void VRage.Collections.MyConcurrentDictionary< TKey, TValue >.Clear ( )
inline

Definition at line 68 of file MyConcurrentDictionary.cs.

bool VRage.Collections.MyConcurrentDictionary< TKey, TValue >.ContainsKey ( TKey  key)
inline

Definition at line 97 of file MyConcurrentDictionary.cs.

bool VRage.Collections.MyConcurrentDictionary< TKey, TValue >.ContainsValue ( TValue  value)
inline

Definition at line 105 of file MyConcurrentDictionary.cs.

KeyValuePair<TKey, TValue> VRage.Collections.MyConcurrentDictionary< TKey, TValue >.FirstPair ( )
inline

Definition at line 144 of file MyConcurrentDictionary.cs.

IEnumerator<KeyValuePair<TKey, TValue> > VRage.Collections.MyConcurrentDictionary< TKey, TValue >.GetEnumerator ( )
inline

Definition at line 191 of file MyConcurrentDictionary.cs.

TValue VRage.Collections.MyConcurrentDictionary< TKey, TValue >.GetValueOrDefault ( TKey  key,
TValue  defaultValue 
)
inline

Definition at line 138 of file MyConcurrentDictionary.cs.

void VRage.Collections.MyConcurrentDictionary< TKey, TValue >.GetValues ( List< TValue >  result)
inline

Definition at line 129 of file MyConcurrentDictionary.cs.

bool VRage.Collections.MyConcurrentDictionary< TKey, TValue >.Remove ( TKey  key)
inline

Definition at line 113 of file MyConcurrentDictionary.cs.

bool VRage.Collections.MyConcurrentDictionary< TKey, TValue >.TryAdd ( TKey  key,
TValue  value 
)
inline

Definition at line 84 of file MyConcurrentDictionary.cs.

bool VRage.Collections.MyConcurrentDictionary< TKey, TValue >.TryGetValue ( TKey  key,
out TValue  value 
)
inline

Definition at line 121 of file MyConcurrentDictionary.cs.

Property Documentation

int VRage.Collections.MyConcurrentDictionary< TKey, TValue >.Count
get

Definition at line 19 of file MyConcurrentDictionary.cs.

TValue VRage.Collections.MyConcurrentDictionary< TKey, TValue >.this[TKey key]
getset

Definition at line 30 of file MyConcurrentDictionary.cs.


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