Struct VectorArray<T>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Syntax
public struct VectorArray<T>
Type Parameters
Constructors
VectorArray(T[], UInt32, UInt32, Boolean)
Declaration
public VectorArray(T[] array, uint offset, uint count, bool clearToDefault)
Parameters
Type |
Name |
Description |
T[] |
array |
|
System.UInt32 |
offset |
|
System.UInt32 |
count |
|
System.Boolean |
clearToDefault |
|
VectorArray(UInt32, Boolean)
Declaration
public VectorArray(uint capacity, bool clearToDefault)
Parameters
Type |
Name |
Description |
System.UInt32 |
capacity |
|
System.Boolean |
clearToDefault |
|
VectorArray(ref VectorArray<T>, UInt32, UInt32)
Declaration
public VectorArray(ref VectorArray<T> vec, uint offset, uint count)
Parameters
Type |
Name |
Description |
VectorArray<T> |
vec |
|
System.UInt32 |
offset |
|
System.UInt32 |
count |
|
Fields
k_InvalidIdx
Declaration
public const uint k_InvalidIdx = 4294967295U
Field Value
Type |
Description |
System.UInt32 |
|
Properties
Item[UInt32]
Declaration
public T this[uint index] { get; set; }
Parameters
Type |
Name |
Description |
System.UInt32 |
index |
|
Property Value
Methods
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
obj |
|
Returns
Type |
Description |
System.UInt32 |
|
Add(T[], UInt32)
Declaration
public uint Add(T[] objs, uint count)
Parameters
Type |
Name |
Description |
T[] |
objs |
|
System.UInt32 |
count |
|
Returns
Type |
Description |
System.UInt32 |
|
Add(ref VectorArray<T>)
Declaration
public uint Add(ref VectorArray<T> vec)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
AddUnchecked(T)
Declaration
public uint AddUnchecked(T obj)
Parameters
Type |
Name |
Description |
T |
obj |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUnchecked(T[], UInt32)
Declaration
public uint AddUnchecked(T[] objs, uint count)
Parameters
Type |
Name |
Description |
T[] |
objs |
|
System.UInt32 |
count |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUnchecked(ref VectorArray<T>)
Declaration
public uint AddUnchecked(ref VectorArray<T> vec)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
AddUnique(T)
Declaration
public uint AddUnique(T obj)
Parameters
Type |
Name |
Description |
T |
obj |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUnique(T[], UInt32)
Declaration
public uint AddUnique(T[] objs, uint count)
Parameters
Type |
Name |
Description |
T[] |
objs |
|
System.UInt32 |
count |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUnique(ref VectorArray<T>)
Declaration
public uint AddUnique(ref VectorArray<T> vec)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
AddUniqueUnchecked(T)
Declaration
public uint AddUniqueUnchecked(T obj)
Parameters
Type |
Name |
Description |
T |
obj |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUniqueUnchecked(T[], UInt32)
Declaration
public uint AddUniqueUnchecked(T[] objs, uint count)
Parameters
Type |
Name |
Description |
T[] |
objs |
|
System.UInt32 |
count |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUniqueUnchecked(ref VectorArray<T>)
Declaration
public uint AddUniqueUnchecked(ref VectorArray<T> vec)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
AsArray(out UInt32, out UInt32)
Declaration
public T[] AsArray(out uint offset, out uint count)
Parameters
Type |
Name |
Description |
System.UInt32 |
offset |
|
System.UInt32 |
count |
|
Returns
CapacityAvailable()
Declaration
public uint CapacityAvailable()
Returns
Type |
Description |
System.UInt32 |
|
CapacityTotal()
Declaration
public uint CapacityTotal()
Returns
Type |
Description |
System.UInt32 |
|
Contains(T)
Declaration
public bool Contains(T designator)
Parameters
Type |
Name |
Description |
T |
designator |
|
Returns
Type |
Description |
System.Boolean |
|
Contains<U>(U, VectorArray<T>.Comparator<U>)
Declaration
public bool Contains<U>(U designator, VectorArray<T>.Comparator<U> compareDelegate)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
CopyTo(T[], Int32, out UInt32)
Declaration
public void CopyTo(T[] destination, int destinationStart, out uint count)
Parameters
Type |
Name |
Description |
T[] |
destination |
|
System.Int32 |
destinationStart |
|
System.UInt32 |
count |
|
Count()
Declaration
Returns
Type |
Description |
System.UInt32 |
|
Declaration
public void ExtractTo<U>(U[] destination, int destinationStart, out uint count, VectorArray<T>.Extractor<U> extractorDelegate)
Parameters
Type |
Name |
Description |
U[] |
destination |
|
System.Int32 |
destinationStart |
|
System.UInt32 |
count |
|
VectorArray.Extractor<U> |
extractorDelegate |
|
Type Parameters
Declaration
public void ExtractTo<U>(ref VectorArray<U> destination, VectorArray<T>.Extractor<U> extractorDelegate)
Parameters
Type Parameters
FindFirst(out UInt32, ref T)
Declaration
public bool FindFirst(out uint idx, ref T designator)
Parameters
Type |
Name |
Description |
System.UInt32 |
idx |
|
T |
designator |
|
Returns
Type |
Description |
System.Boolean |
|
FindFirst<U>(out UInt32, ref U, VectorArray<T>.Comparator<U>)
Declaration
public bool FindFirst<U>(out uint idx, ref U designator, VectorArray<T>.Comparator<U> compareDelegate)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Purge(UInt32)
Declaration
public void Purge(uint count)
Parameters
Type |
Name |
Description |
System.UInt32 |
count |
|
Purge(UInt32, VectorArray<T>.Cleanup)
Declaration
public void Purge(uint count, VectorArray<T>.Cleanup cleanupDelegate)
Parameters
Reserve(UInt32)
Declaration
public void Reserve(uint capacity)
Parameters
Type |
Name |
Description |
System.UInt32 |
capacity |
|
Reset()
Declaration
Reset(UInt32)
Declaration
public void Reset(uint capacity)
Parameters
Type |
Name |
Description |
System.UInt32 |
capacity |
|
Reset(UInt32, VectorArray<T>.Cleanup)
Declaration
public void Reset(uint capacity, VectorArray<T>.Cleanup cleanupDelegate)
Parameters
Reset(VectorArray<T>.Cleanup)
Declaration
public void Reset(VectorArray<T>.Cleanup cleanupDelegate)
Parameters
Resize(UInt32)
Declaration
public void Resize(uint size)
Parameters
Type |
Name |
Description |
System.UInt32 |
size |
|
Resize(UInt32, VectorArray<T>.Cleanup)
Declaration
public void Resize(uint size, VectorArray<T>.Cleanup cleanupDelegate)
Parameters
Sort()
Declaration
Sort(IComparer<T>)
Declaration
public void Sort(IComparer<T> comparer)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IComparer<T> |
comparer |
|
Subrange(UInt32, UInt32)
Declaration
public VectorArray<T> Subrange(uint offset, uint count)
Parameters
Type |
Name |
Description |
System.UInt32 |
offset |
|
System.UInt32 |
count |
|
Returns
Swap(UInt32, UInt32)
Declaration
public void Swap(uint first, uint second)
Parameters
Type |
Name |
Description |
System.UInt32 |
first |
|
System.UInt32 |
second |
|
SwapUnchecked(UInt32, UInt32)
Declaration
public void SwapUnchecked(uint first, uint second)
Parameters
Type |
Name |
Description |
System.UInt32 |
first |
|
System.UInt32 |
second |
|