Space Engineers
Public Member Functions | Properties | List of all members
VRage.Collections.CachingList< T > Class Template Reference

List 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.CachingList< T >:

Public Member Functions

 CachingList ()
 
 CachingList (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 Clear ()
 
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]
 
this[int index] [get]
 

Detailed Description

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

Definition at line 14 of file CachingList.cs.

Constructor & Destructor Documentation

Definition at line 20 of file CachingList.cs.

VRage.Collections.CachingList< T >.CachingList ( int  capacity)
inline

Definition at line 22 of file CachingList.cs.

Member Function Documentation

void VRage.Collections.CachingList< T >.Add ( entity)
inline

Definition at line 37 of file CachingList.cs.

void VRage.Collections.CachingList< T >.ApplyAdditions ( )
inline

Definition at line 88 of file CachingList.cs.

void VRage.Collections.CachingList< T >.ApplyChanges ( )
inline

Definition at line 82 of file CachingList.cs.

void VRage.Collections.CachingList< T >.ApplyRemovals ( )
inline

Definition at line 94 of file CachingList.cs.

void VRage.Collections.CachingList< T >.Clear ( )
inline

Definition at line 69 of file CachingList.cs.

void VRage.Collections.CachingList< T >.ClearImmediate ( )
inline

Definition at line 75 of file CachingList.cs.

void VRage.Collections.CachingList< T >.DebugCheckEmpty ( )
inline

Definition at line 122 of file CachingList.cs.

List<T>.Enumerator VRage.Collections.CachingList< T >.GetEnumerator ( )
inline

Definition at line 106 of file CachingList.cs.

void VRage.Collections.CachingList< T >.Remove ( entity,
bool  immediate = false 
)
inline

Definition at line 45 of file CachingList.cs.

void VRage.Collections.CachingList< T >.RemoveAtImmediately ( int  index)
inline

Immediately removes an element at the specified index.

Parameters
indexIndex of the element to remove immediately.

Definition at line 63 of file CachingList.cs.

void VRage.Collections.CachingList< T >.Sort ( IComparer< T >  comparer)
inline

Definition at line 101 of file CachingList.cs.

override string VRage.Collections.CachingList< T >.ToString ( )
inline

Definition at line 129 of file CachingList.cs.

Property Documentation

int VRage.Collections.CachingList< T >.Count
get

Definition at line 28 of file CachingList.cs.

T VRage.Collections.CachingList< T >.this[int index]
get

Definition at line 33 of file CachingList.cs.


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