Space Engineers
Public Member Functions | Public Attributes | List of all members
ParallelTasks.Hashtable< TKey, TData > Class Template Reference
Inheritance diagram for ParallelTasks.Hashtable< TKey, TData >:

Public Member Functions

 Hashtable (int initialCapacity)
 Initializes a new instance of the Hashtable&lt;Key, Data&gt; class. More...
 
void Add (TKey key, TData data)
 Adds an item to this hashtable. More...
 
void UnsafeSet (TKey key, TData value)
 Sets the value of the item at the specified key location. This is only guaranteed to work correctly if no other thread is modifying the same key. More...
 
bool TryGet (TKey key, out TData data)
 Tries to get the data at the specified key location. More...
 
void Remove (TKey key)
 Removes the data at the specified key location. More...
 
IEnumerator< KeyValuePair< TKey, TData > > GetEnumerator ()
 Returns an enumerator that iterates through the collection. More...
 

Public Attributes

volatile HashtableNode< TKey, TData >[] array
 

Detailed Description

Definition at line 89 of file Hashtable.cs.

Constructor & Destructor Documentation

ParallelTasks.Hashtable< TKey, TData >.Hashtable ( int  initialCapacity)
inline

Initializes a new instance of the Hashtable&lt;Key, Data&gt; class.

Parameters
initialCapacityThe initial capacity of the table.

Definition at line 110 of file Hashtable.cs.

Member Function Documentation

void ParallelTasks.Hashtable< TKey, TData >.Add ( TKey  key,
TData  data 
)
inline

Adds an item to this hashtable.

Parameters
keyThe key at which to add the item.
dataThe data to add.

Definition at line 123 of file Hashtable.cs.

IEnumerator<KeyValuePair<TKey, TData> > ParallelTasks.Hashtable< TKey, TData >.GetEnumerator ( )
inline

Returns an enumerator that iterates through the collection.

Returns
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

Definition at line 326 of file Hashtable.cs.

void ParallelTasks.Hashtable< TKey, TData >.Remove ( TKey  key)
inline

Removes the data at the specified key location.

Parameters
keyThe key.

Definition at line 292 of file Hashtable.cs.

bool ParallelTasks.Hashtable< TKey, TData >.TryGet ( TKey  key,
out TData  data 
)
inline

Tries to get the data at the specified key location.

Parameters
keyThe key to search for.
dataThe data at the key location.
Returns
true if the data was found; else false.

Definition at line 273 of file Hashtable.cs.

void ParallelTasks.Hashtable< TKey, TData >.UnsafeSet ( TKey  key,
TData  value 
)
inline

Sets the value of the item at the specified key location. This is only guaranteed to work correctly if no other thread is modifying the same key.

Parameters
keyThe key.
valueThe new value.

Definition at line 207 of file Hashtable.cs.

Member Data Documentation

volatile HashtableNode<TKey,TData> [] ParallelTasks.Hashtable< TKey, TData >.array

Definition at line 100 of file Hashtable.cs.


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