Space Engineers
|
List wrapper that allows for addition and removal even during enumeration. Done by caching changes and allowing explicit application using Apply* methods. More...
Public Member Functions | |
ConcurrentCachingList () | |
ConcurrentCachingList (int capacity) | |
void | Add (T entity) |
void | Remove (T entity, bool immediate=false) |
void | RemoveAtImmediately (int index) |
Immediately removes an element at the specified index. More... | |
void | ClearList () |
void | ClearImmediate () |
void | ApplyChanges () |
void | ApplyAdditions () |
void | ApplyRemovals () |
void | Sort (IComparer< T > comparer) |
List< T >.Enumerator | GetEnumerator () |
void | DebugCheckEmpty () |
override string | ToString () |
Properties | |
int | Count [get] |
T | this[int index] [get] |
List wrapper that allows for addition and removal even during enumeration. Done by caching changes and allowing explicit application using Apply* methods.
This version has individual locks for cached and non-cached versions, allowing each to be managed efficiently even across multiple threads
Definition at line 18 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 27 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 29 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 48 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 116 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 110 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 126 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 99 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 93 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 160 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 143 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 59 of file ConcurrentCachingList.cs.
|
inline |
Immediately removes an element at the specified index.
index | Index of the element to remove immediately. |
Definition at line 84 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 137 of file ConcurrentCachingList.cs.
|
inline |
Definition at line 167 of file ConcurrentCachingList.cs.
|
get |
Definition at line 35 of file ConcurrentCachingList.cs.
|
get |
Definition at line 44 of file ConcurrentCachingList.cs.