FastList< T > Class Template Reference

Public Member Functions

delegate int CompareFunc (T left, T right)
 Comparison function should return -1 if left is less than right, 1 if left is greater than right, and 0 if they match. More...
 
 FastList ()
 
 FastList (int size)
 
void Add (T item)
 
void AddUnique (T item)
 
void AddRange (IEnumerable< T > items)
 
void Insert (int index, T item)
 
bool Remove (T item)
 
void RemoveAt (int index)
 
bool RemoveFast (T item)
 
void RemoveAtFast (int index)
 
bool Contains (T item)
 
int IndexOf (T item)
 
Pop ()
 
T [] ToArray ()
 
void Sort (CompareFunc comparer)
 
void InsertionSort (CompareFunc comparer)
 
IEnumerator< T > GetEnumerator ()
 
Find (Predicate< T > match)
 
void Clear ()
 
void Release ()
 

Public Attributes

T [] array = null
 
int size = 0
 

Properties

int Count [get, set]
 
this[int i] [get, set]
 

Constructor & Destructor Documentation

◆ FastList() [1/2]

FastList< T >.FastList ( )

◆ FastList() [2/2]

FastList< T >.FastList ( int  size)

Member Function Documentation

◆ Add()

void FastList< T >.Add ( item)

◆ AddRange()

void FastList< T >.AddRange ( IEnumerable< T >  items)

◆ AddUnique()

void FastList< T >.AddUnique ( item)

◆ Clear()

void FastList< T >.Clear ( )

◆ CompareFunc()

delegate int FastList< T >.CompareFunc ( left,
right 
)

Comparison function should return -1 if left is less than right, 1 if left is greater than right, and 0 if they match.

◆ Contains()

bool FastList< T >.Contains ( item)

◆ Find()

T FastList< T >.Find ( Predicate< T >  match)

◆ GetEnumerator()

IEnumerator<T> FastList< T >.GetEnumerator ( )

◆ IndexOf()

int FastList< T >.IndexOf ( item)

◆ Insert()

void FastList< T >.Insert ( int  index,
item 
)

◆ InsertionSort()

void FastList< T >.InsertionSort ( CompareFunc  comparer)

◆ Pop()

T FastList< T >.Pop ( )

◆ Release()

void FastList< T >.Release ( )

◆ Remove()

bool FastList< T >.Remove ( item)

◆ RemoveAt()

void FastList< T >.RemoveAt ( int  index)

◆ RemoveAtFast()

void FastList< T >.RemoveAtFast ( int  index)

◆ RemoveFast()

bool FastList< T >.RemoveFast ( item)

◆ Sort()

void FastList< T >.Sort ( CompareFunc  comparer)

◆ ToArray()

T [] FastList< T >.ToArray ( )

Member Data Documentation

◆ array

T [] FastList< T >.array = null

◆ size

int FastList< T >.size = 0

Property Documentation

◆ Count

int FastList< T >.Count
getset

◆ this[int i]

T FastList< T >.this[int i]
getset

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