FastListStruct<T> Struct
Namespace: Stride.Core.Collections
Assembly: Stride.Core.dll
public struct FastListStruct<T> : IEnumerable<T>, IEnumerable
Type Parameters
|
Improve this Doc
View Source
Constructors
FastListStruct(T[])
public FastListStruct(T[] array)
Parameters
| Type |
Name |
Description |
| T[] |
array |
|
FastListStruct(FastList<T>)
public FastListStruct(FastList<T> fastList)
Parameters
| Type |
Name |
Description |
| FastList<T> |
fastList |
|
FastListStruct(Int32)
public FastListStruct(int capacity)
Parameters
| Type |
Name |
Description |
| System.Int32 |
capacity |
|
|
Improve this Doc
View Source
Fields
Count
Field Value
| Type |
Description |
| System.Int32 |
|
Items
Field Value
|
Improve this Doc
View Source
Properties
Item[Int32]
public T this[int index] { get; set; }
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Property Value
|
Improve this Doc
View Source
Methods
Add(T)
Parameters
| Type |
Name |
Description |
| T |
item |
|
AddRange(FastListStruct<T>)
public void AddRange(FastListStruct<T> items)
Parameters
Clear()
Contains(T)
public bool Contains(T item)
Parameters
| Type |
Name |
Description |
| T |
item |
|
Returns
| Type |
Description |
| System.Boolean |
|
EnsureCapacity(Int32)
public void EnsureCapacity(int newCapacity)
Parameters
| Type |
Name |
Description |
| System.Int32 |
newCapacity |
|
GetEnumerator()
public FastListStruct<T>.Enumerator GetEnumerator()
Returns
IndexOf(T)
public int IndexOf(T item)
Parameters
| Type |
Name |
Description |
| T |
item |
|
Returns
| Type |
Description |
| System.Int32 |
|
Insert(Int32, T)
public void Insert(int index, T item)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| T |
item |
|
Remove(T)
public bool Remove(T item)
Parameters
| Type |
Name |
Description |
| T |
item |
|
Returns
| Type |
Description |
| System.Boolean |
|
RemoveAt(Int32)
public void RemoveAt(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
SwapRemoveAt(Int32)
Remove an item by swapping it with the last item and removing it from the last position. This function prevents to shift values from the list on removal but does not maintain order.
public void SwapRemoveAt(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
Index of the item to remove.
|
ToArray()
Returns
|
Improve this Doc
View Source
Operators
Implicit(T[] to FastListStruct<T>)
public static implicit operator FastListStruct<T>(T[] array)
Parameters
| Type |
Name |
Description |
| T[] |
array |
|
Returns
Implicit(FastList<T> to FastListStruct<T>)
public static implicit operator FastListStruct<T>(FastList<T> fastList)
Parameters
| Type |
Name |
Description |
| FastList<T> |
fastList |
|
Returns
|
Improve this Doc
View Source
Explicit Interface Implementations
IEnumerable<T>.GetEnumerator()
IEnumerator<T> IEnumerable<T>.GetEnumerator()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerator<T> |
|
IEnumerable.GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
Extension Methods