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

Allows access to queue by index Otherwise implementation is similar to regular queue More...

Inheritance diagram for VRage.Collections.MyQueue< T >:
VRage.Collections.MyTransparentQueue< T >

Public Member Functions

 MyQueue (int capacity)
 
 MyQueue (IEnumerable< T > collection)
 
void Clear ()
 
void Enqueue (T item)
 
T Peek ()
 
T Dequeue ()
 
bool Contains (T item)
 
bool Remove (T item)
 
void Remove (int idx)
 
void TrimExcess ()
 
override string ToString ()
 

Protected Member Functions

void SetCapacity (int capacity)
 

Protected Attributes

T[] m_array
 
int m_head
 
int m_tail
 
int m_size
 

Properties

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

Detailed Description

Allows access to queue by index Otherwise implementation is similar to regular queue

Definition at line 12 of file MyQueue.cs.

Constructor & Destructor Documentation

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

Definition at line 19 of file MyQueue.cs.

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

Definition at line 29 of file MyQueue.cs.

Member Function Documentation

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

Definition at line 52 of file MyQueue.cs.

bool VRage.Collections.MyQueue< T >.Contains ( T  item)
inline

Definition at line 123 of file MyQueue.cs.

T VRage.Collections.MyQueue< T >.Dequeue ( )
inline

Definition at line 114 of file MyQueue.cs.

void VRage.Collections.MyQueue< T >.Enqueue ( T  item)
inline

Definition at line 93 of file MyQueue.cs.

T VRage.Collections.MyQueue< T >.Peek ( )
inline

Definition at line 107 of file MyQueue.cs.

bool VRage.Collections.MyQueue< T >.Remove ( T  item)
inline

Definition at line 135 of file MyQueue.cs.

void VRage.Collections.MyQueue< T >.Remove ( int  idx)
inline

Definition at line 152 of file MyQueue.cs.

void VRage.Collections.MyQueue< T >.SetCapacity ( int  capacity)
inlineprotected

Definition at line 171 of file MyQueue.cs.

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

Definition at line 198 of file MyQueue.cs.

void VRage.Collections.MyQueue< T >.TrimExcess ( )
inline

Definition at line 191 of file MyQueue.cs.

Member Data Documentation

T [] VRage.Collections.MyQueue< T >.m_array
protected

Definition at line 14 of file MyQueue.cs.

int VRage.Collections.MyQueue< T >.m_head
protected

Definition at line 15 of file MyQueue.cs.

int VRage.Collections.MyQueue< T >.m_size
protected

Definition at line 17 of file MyQueue.cs.

int VRage.Collections.MyQueue< T >.m_tail
protected

Definition at line 16 of file MyQueue.cs.

Property Documentation

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

Definition at line 70 of file MyQueue.cs.

T [] VRage.Collections.MyQueue< T >.InternalArray
get

Definition at line 40 of file MyQueue.cs.

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

Definition at line 78 of file MyQueue.cs.


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