Space Engineers
Public Member Functions | Properties | List of all members
VRage.Collections.CachingDictionary< K, V > Class Template Reference

Dictionary wrapper that allows for addition and removal even during enumeration. Done by caching changes and allowing explicit application using Apply* methods. More...

Inheritance diagram for VRage.Collections.CachingDictionary< K, V >:

Public Member Functions

void Add (K key, V value, bool immediate=false)
 
void Remove (K key, bool immediate=false)
 
bool TryGetValue (K key, out V value)
 
bool ContainsKey (K key)
 
void Clear ()
 
bool HasChanges ()
 
void ApplyChanges ()
 
void ApplyAdditionsAndModifications ()
 
void ApplyRemovals ()
 
Dictionary< K, V >.Enumerator GetEnumerator ()
 

Properties

DictionaryReader< K, V > Reader [get]
 
this[K key] [get, set]
 
Dictionary< K, V >.KeyCollection Keys [get]
 
Dictionary< K, V >.ValueCollection Values [get]
 

Detailed Description

Dictionary wrapper that allows for addition and removal even during enumeration. Done by caching changes and allowing explicit application using Apply* methods.

Definition at line 13 of file CachingDictionary.cs.

Member Function Documentation

void VRage.Collections.CachingDictionary< K, V >.Add ( key,
value,
bool  immediate = false 
)
inline

Definition at line 42 of file CachingDictionary.cs.

void VRage.Collections.CachingDictionary< K, V >.ApplyAdditionsAndModifications ( )
inline

Definition at line 114 of file CachingDictionary.cs.

void VRage.Collections.CachingDictionary< K, V >.ApplyChanges ( )
inline

Definition at line 108 of file CachingDictionary.cs.

void VRage.Collections.CachingDictionary< K, V >.ApplyRemovals ( )
inline

Definition at line 123 of file CachingDictionary.cs.

void VRage.Collections.CachingDictionary< K, V >.Clear ( )
inline

Definition at line 96 of file CachingDictionary.cs.

bool VRage.Collections.CachingDictionary< K, V >.ContainsKey ( key)
inline

Definition at line 75 of file CachingDictionary.cs.

Dictionary<K, V>.Enumerator VRage.Collections.CachingDictionary< K, V >.GetEnumerator ( )
inline

Definition at line 142 of file CachingDictionary.cs.

bool VRage.Collections.CachingDictionary< K, V >.HasChanges ( )
inline

Definition at line 103 of file CachingDictionary.cs.

void VRage.Collections.CachingDictionary< K, V >.Remove ( key,
bool  immediate = false 
)
inline

Definition at line 56 of file CachingDictionary.cs.

bool VRage.Collections.CachingDictionary< K, V >.TryGetValue ( key,
out V  value 
)
inline

Definition at line 70 of file CachingDictionary.cs.

Property Documentation

Dictionary<K, V>.KeyCollection VRage.Collections.CachingDictionary< K, V >.Keys
get

Definition at line 81 of file CachingDictionary.cs.

Definition at line 26 of file CachingDictionary.cs.

V VRage.Collections.CachingDictionary< K, V >.this[K key]
getset

Definition at line 31 of file CachingDictionary.cs.

Dictionary<K, V>.ValueCollection VRage.Collections.CachingDictionary< K, V >.Values
get

Definition at line 89 of file CachingDictionary.cs.


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