TripleArray<T1, T2, T3>
Maintains and synchronizes three arrays. Note: this is probably useless now that Tuples are part of the lang.spec.
Type parameters:
| T1 | |
| T2 | |
| T3 |
Constructors
TripleArray
#Create a new multi-array from collections.
Parameters:
| t1Items (IEnumerable<T1>) | Collection of T1 items. |
| t2Items (IEnumerable<T2>) | Collection of T2 items. |
| t3Items (IEnumerable<T3>) | Collection of T3 items. |
Properties
Methods
Add
#public void Add(T1 a, T2 b, T3 c)
Add a pair to this multi array.
Parameters:
| a (T1) | A value. |
| b (T2) | B value. |
| c (T3) | C value. |
EnsureCapacity
#Ensure the capacity of this multi-array is at least the given amount.
Parameters:
| capacity (int) | Required capacity. |
FindT1
#Find the first occurence of a T1 item.
Parameters:
| item (T1) | Item to find. |
| startIndex (int) | First index to take into account. |
Returns: First index of matching item or -1.
FindT1
#Find the first occurence of a T1 item.
Parameters:
| item (T1) | Item to find. |
Returns: First index of matching item or -1.
FindT2
#Find the first occurence of a T2 item.
Parameters:
| item (T2) | Item to find. |
| startIndex (int) | First index to take into account. |
Returns: First index of matching item or -1.
FindT2
#Find the first occurence of a T2 item.
Parameters:
| item (T2) | Item to find. |
Returns: First index of matching item or -1.
FindT3
#Find the first occurence of a T3 item.
Parameters:
| item (T3) | Item to find. |
| startIndex (int) | First index to take into account. |
Returns: First index of matching item or -1.
FindT3
#Find the first occurence of a T3 item.
Parameters:
| item (T3) | Item to find. |
Returns: First index of matching item or -1.