Space Engineers
Public Member Functions | Properties | List of all members
VRage.Collections.MyTransparentQueue< T > Class Template Reference
Inheritance diagram for VRage.Collections.MyTransparentQueue< T >:
VRage.Collections.MyQueue< T >

Public Member Functions

 MyTransparentQueue (int capacity)
 
 MyTransparentQueue (IEnumerable< T > collection)
 
new bool Enqueue (T item)
 
void AdvanceHead (int amount)
 
int QueueIndexForArray (int arrayIndex)
 
- Public Member Functions inherited from VRage.Collections.MyQueue< T >
 MyQueue (int capacity)
 
 MyQueue (IEnumerable< T > collection)
 
void Clear ()
 
void Enqueue (T item)
 
Peek ()
 
Dequeue ()
 
bool Contains (T item)
 
bool Remove (T item)
 
void Remove (int idx)
 
void TrimExcess ()
 
override string ToString ()
 

Properties

new T this[int index] [get, set]
 
int Head [get]
 
int Tail [get, set]
 
int ArraySize [get]
 
- Properties inherited from VRage.Collections.MyQueue< T >
T[] InternalArray [get]
 
int Count [get]
 
this[int index] [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from VRage.Collections.MyQueue< T >
void SetCapacity (int capacity)
 
- Protected Attributes inherited from VRage.Collections.MyQueue< T >
T[] m_array
 
int m_head
 
int m_tail
 
int m_size
 

Detailed Description

Helper queue class that exposes the internals of the queue.

Useful when custom operations are necessary but one does not want to extend the queue itself to keep code organised.

Definition at line 16 of file MyTransparentQueue.cs.

Constructor & Destructor Documentation

Definition at line 18 of file MyTransparentQueue.cs.

VRage.Collections.MyTransparentQueue< T >.MyTransparentQueue ( IEnumerable< T >  collection)
inline

Definition at line 23 of file MyTransparentQueue.cs.

Member Function Documentation

void VRage.Collections.MyTransparentQueue< T >.AdvanceHead ( int  amount)
inline

Definition at line 54 of file MyTransparentQueue.cs.

new bool VRage.Collections.MyTransparentQueue< T >.Enqueue ( item)
inline

Returns true if the queue had to be resized.

Definition at line 31 of file MyTransparentQueue.cs.

int VRage.Collections.MyTransparentQueue< T >.QueueIndexForArray ( int  arrayIndex)
inline

Definition at line 79 of file MyTransparentQueue.cs.

Property Documentation

int VRage.Collections.MyTransparentQueue< T >.ArraySize
get

Definition at line 75 of file MyTransparentQueue.cs.

Definition at line 64 of file MyTransparentQueue.cs.

Definition at line 69 of file MyTransparentQueue.cs.

new T VRage.Collections.MyTransparentQueue< T >.this[int index]
getset

Definition at line 49 of file MyTransparentQueue.cs.


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