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

Automatically resizing array when accessing index. More...

Public Member Functions

 MyIndexArray (int defaultCapacity=0)
 
void Clear ()
 
void ClearItem (int index)
 
void TrimExcess (float minimumShrinkFactor=0.5f, IEqualityComparer< T > comparer=null)
 Trims end of array which contains default elements. More...
 

Public Attributes

float MinimumGrowFactor = 2
 

Properties

T[] InternalArray [get]
 
int Length [get]
 
this[int index] [get, set]
 

Detailed Description

Automatically resizing array when accessing index.

Definition at line 11 of file MyIndexArray.cs.

Constructor & Destructor Documentation

VRage.Library.Collections.MyIndexArray< T >.MyIndexArray ( int  defaultCapacity = 0)
inline

Definition at line 45 of file MyIndexArray.cs.

Member Function Documentation

void VRage.Library.Collections.MyIndexArray< T >.Clear ( )
inline

Definition at line 50 of file MyIndexArray.cs.

void VRage.Library.Collections.MyIndexArray< T >.ClearItem ( int  index)
inline

Definition at line 55 of file MyIndexArray.cs.

void VRage.Library.Collections.MyIndexArray< T >.TrimExcess ( float  minimumShrinkFactor = 0.5f,
IEqualityComparer< T >  comparer = null 
)
inline

Trims end of array which contains default elements.

Definition at line 63 of file MyIndexArray.cs.

Member Data Documentation

float VRage.Library.Collections.MyIndexArray< T >.MinimumGrowFactor = 2

Definition at line 15 of file MyIndexArray.cs.

Property Documentation

T [] VRage.Library.Collections.MyIndexArray< T >.InternalArray
get

Definition at line 18 of file MyIndexArray.cs.

Definition at line 23 of file MyIndexArray.cs.

T VRage.Library.Collections.MyIndexArray< T >.this[int index]
getset

Definition at line 28 of file MyIndexArray.cs.


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