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

Stores items in list with fixed index (no reordering). Null is used as special value and cannot be added into list. More...

Inheritance diagram for VRage.Library.Collections.MyIndexList< T >:

Classes

struct  Enumerator
 

Public Member Functions

 MyIndexList (int capacity=0)
 
int Add (T item)
 
void Remove (int index)
 
void Remove (int index, out T removedItem)
 
bool TryRemove (int index)
 
bool TryRemove (int index, out T removedItem)
 

Properties

int Count [get]
 
this[int index] [get]
 
int NextIndex [get]
 Returns what will be next index returned by Add operation. More...
 

Detailed Description

Stores items in list with fixed index (no reordering). Null is used as special value and cannot be added into list.

Type Constraints
T :class 

Definition at line 13 of file MyIndexList.cs.

Constructor & Destructor Documentation

VRage.Library.Collections.MyIndexList< T >.MyIndexList ( int  capacity = 0)
inline

Definition at line 91 of file MyIndexList.cs.

Member Function Documentation

int VRage.Library.Collections.MyIndexList< T >.Add ( item)
inline

Definition at line 97 of file MyIndexList.cs.

void VRage.Library.Collections.MyIndexList< T >.Remove ( int  index)
inline

Definition at line 117 of file MyIndexList.cs.

void VRage.Library.Collections.MyIndexList< T >.Remove ( int  index,
out T  removedItem 
)
inline

Definition at line 123 of file MyIndexList.cs.

bool VRage.Library.Collections.MyIndexList< T >.TryRemove ( int  index)
inline

Definition at line 129 of file MyIndexList.cs.

bool VRage.Library.Collections.MyIndexList< T >.TryRemove ( int  index,
out T  removedItem 
)
inline

Definition at line 135 of file MyIndexList.cs.

Property Documentation

Definition at line 74 of file MyIndexList.cs.

int VRage.Library.Collections.MyIndexList< T >.NextIndex
get

Returns what will be next index returned by Add operation.

Definition at line 87 of file MyIndexList.cs.

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

Definition at line 79 of file MyIndexList.cs.


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