TripleArray<T1, T2, T3>

public class TripleArray<T1, T2, T3>
Maintains and synchronizes three arrays. Note: this is probably useless now that Tuples are part of the lang.spec.
T1
T2
T3

Constructors

TripleArray

#
Create a new, empty multi-array.
public TripleArray()

TripleArray

#
Create a new multi-array from collections.
public TripleArray(
t1Items,
Collection of T1 items.
t2Items,
Collection of T2 items.
t3Items
Collection of T3 items.
)

TripleArray

#
Create a new multi-array with a specified capacity.
public TripleArray(
capacity
)

Properties

A

#
Get access to the internal T1 array.
public Accessor<T1> A { get; }

B

#
Get access to the internal T2 array.
public Accessor<T2> B { get; }

C

#
Get access to the internal T3 array.
public Accessor<T3> C { get; }

Capacity

#
Gets the capacity for each array.
public int Capacity { get; }

Count

#
Gets the number of items stored in each array.
public int Count { get; }

T1Items

#
Enumerate over all T1 items.
public IEnumerable<T1> T1Items { get; }

T2Items

#
Enumerate over all T2 items.
public IEnumerable<T2> T2Items { get; }

T3Items

#
Enumerate over all T3 items.
public IEnumerable<T3> T3Items { get; }

Methods

Add

#
Add a pair to this multi array.
public void Add(
T1
a,
A value.
T2
b,
B value.
T3
c
C value.
)

Clear

#
Clear the array.
public void Clear()

EnsureCapacity

#
Ensure the capacity of this multi-array is at least the given amount.
public void EnsureCapacity(
capacity
Required capacity.
)

FindT1

#
Find the first occurence of a T1 item.
public int FindT1(
T1
item,
Item to find.
startIndex
First index to take into account.
)
First index of matching item or -1.

FindT1

#
Find the first occurence of a T1 item.
public int FindT1(
T1
item
Item to find.
)
First index of matching item or -1.

FindT2

#
Find the first occurence of a T2 item.
public int FindT2(
T2
item,
Item to find.
startIndex
First index to take into account.
)
First index of matching item or -1.

FindT2

#
Find the first occurence of a T2 item.
public int FindT2(
T2
item
Item to find.
)
First index of matching item or -1.

FindT3

#
Find the first occurence of a T3 item.
public int FindT3(
T3
item,
Item to find.
startIndex
First index to take into account.
)
First index of matching item or -1.

FindT3

#
Find the first occurence of a T3 item.
public int FindT3(
T3
item
Item to find.
)
First index of matching item or -1.

Remove

#
Remove the values at the given index.
public void Remove(
index
Index to remove.
)

ToT1Array

#
Copy the internal T1 array into a new array.
public T1[] ToT1Array()
T1 items.

ToT2Array

#
Copy the internal T2 array into a new array.
public T2[] ToT2Array()
T2 items.

ToT3Array

#
Copy the internal T3 array into a new array.
public T3[] ToT3Array()
T3 items.

TrimExcess

#
Release unused memory.
public void TrimExcess()