Astra Unity 2.6.6
Astra Unity Plugin
|
Contains a list of 2 type tuplets More...
Classes | |
class | TupletsEnumerator |
Public Member Functions | |
Tuplet< A, B > | GetFromFirst (A a) |
Finds a tuplet, using the 1st element More... | |
Tuplet< A, B > | GetFromSecond (B b) |
Finds a tuplet, using the 2nd element More... | |
Tuplet< A, B > | GetFromSlot (int slot) |
Retrieves the tuplet at the given index More... | |
void | Upsert (Tuplet< A, B > tuplet) |
Adds the given tuplet into the list if it is not there, updates it if it is More... | |
int | GetSlotFromFirst (A a) |
Find the index of the Tuplet by 1st element value More... | |
int | GetSlotFromSecond (B b) |
Find the index of the Tuplet by 2nd element value More... | |
void | Clear () |
Clears the list of Tuplets | |
void | OnBeforeSerialize () |
Implementation for Unity ISerializationCallbackReceiver | |
void | BuildFirstSecond () |
Update the lists of First and Second elements | |
void | OnAfterDeserialize () |
Implementation for Unity ISerializationCallbackReceiver | |
void | MarkLookupsDirty () |
void | Reindex (bool force=false) |
Update the indices of the Tuplets in the list | |
void | ReindexAdd (Tuplet< A, B > record) |
A more efficient way to index the tuplet lookups knowing we just added to the list More... | |
virtual void | UpsertBySlot (int slot, System.Object a, System.Object b) |
Adds or updates an entry, using generic values. Replaces an entry by slot, not by key/values More... | |
virtual void | UpsertBySlot (int slot, A a, B b) |
Adds or updates an entry, using typed values. Replaces an entry by slot, not by key/values More... | |
virtual void | UpsertBySlot (int slot, Tuplet< A, B > tuplet) |
Adds or updates an entry, using a passed in tuplet. Replaces an entry by slot, not by key/values More... | |
virtual void | Add (System.Object a, System.Object b) |
Adds a Tuple using the given elements More... | |
virtual void | Add (Tuplet< A, B > tuplet) |
Adds a Tuple to the list More... | |
virtual void | RemoveBySlot (int slot, bool reindex=false) |
Removes a tuplet at the given index More... | |
virtual void | RemoveByFirst (A a) |
Removes the tuplet with the given 1st element value More... | |
virtual void | RemoveBySecond (B b) |
Removes the tuplet with the given 2nd element value More... | |
Tuplet< System.Object, System.Object > | GetFromSlotGeneric (int slot) |
Retrieve a generic tuplet from the given index More... | |
virtual IEnumerator | GetEnumerator () |
Retrieves a typed enumerator More... | |
IEnumerator | GetEnumeratorGeneric () |
Retrieves a generic enumerator More... | |
R | GetFromSlot< R > (int slot) |
Yields a tuplet back as the T type Warning: this gives you a COPY of the original, not a reference to the original! If you modify your result, you must re-upsert back in! More... | |
bool | MoveNext () |
void | Reset () |
new IEnumerator< T > | GetEnumerator () |
System.Type | GetFirstType () |
System.Type | GetSecondType () |
System.Type | GetThirdType () |
int | GetSlotFromFirst (A a) |
Find the index of the Tuplet by 1st element value More... | |
int | GetSlotFromSecond (B b) |
Find the index of the Tuplet by 2nd element value More... | |
int | GetSlotFromThird (C c) |
Find the index of the Tuplet by 3rd element value More... | |
Tuplet< A, B, C > | GetFromFirst (A a) |
Retrieve the Tuplet by 1st element value More... | |
Tuplet< A, B, C > | GetFromSecond (B b) |
Retrieve the Tuplet by 2nd element value More... | |
Tuplet< A, B, C > | GetFromThird (C c) |
Retrieve the Tuplet by 3rd element value More... | |
virtual bool | ContainsFirst (A a) |
Whether the list contains a 1st element with the given value More... | |
virtual bool | ContainsSecond (B b) |
Whether the list contains a 2nd element with the given value More... | |
virtual bool | ContainsThird (C c) |
Whether the list contains a 3rd element with the given value More... | |
virtual Tuplet< A, B, C > | GetFromSlot (int slot) |
Retrieves the Tuplet at the given index More... | |
void | Upsert (Tuplet< A, B, C > tuplet) |
Adds or updates the given tuplet in the list More... | |
void | Clear () |
Clears the list of tuplets | |
void | OnBeforeSerialize () |
Implementation for Unity ISerializationCallbackReceiver | |
void | OnAfterDeserialize () |
Implementation for Unity ISerializationCallbackReceiver | |
void | Reindex () |
Update the indices of the Tuplets in the list | |
virtual void | UpsertBySlot (int slot, System.Object a, System.Object b, System.Object c) |
Adds or updates an entry, using generic values. Replaces an entry by slot, not by key/values More... | |
virtual void | UpsertBySlot (int slot, A a, B b, C c) |
Adds or updates an entry, using typed values. Replaces an entry by slot, not by key/values More... | |
virtual void | UpsertBySlot (int slot, Tuplet< A, B, C > tuplet) |
Adds or updates an entry, using a passed in tuplet. Replaces an entry by slot, not by key/values More... | |
virtual void | Add (System.Object a, System.Object b, System.Object c) |
Adds a Tuple using the given elements More... | |
virtual void | Add (Tuplet< A, B, C > tuplet) |
Adds a Tuple to the list More... | |
virtual void | RemoveBySlot (int slot, bool reindex=true) |
Removes a tuplet at the given index More... | |
virtual bool | RemoveFromFirst (A a) |
Removes the tuplet with the given 1st element value More... | |
virtual bool | RemoveFromSecond (B b) |
Removes the tuplet with the given 2nd element value More... | |
virtual bool | RemoveFromThird (C c) |
Removes the tuplet with the given 3rd element value More... | |
Tuplet< System.Object, System.Object, System.Object > | GetFromSlotGeneric (int slot) |
Retrieve a generic tuplet from the given index More... | |
virtual IEnumerator | GetEnumerator () |
Retrieves a typed enumerator More... | |
IEnumerator | GetEnumeratorGeneric () |
Retrieves a generic enumerator More... | |
Public Attributes | |
List< Tuplet< A, B > > | Items = new List<Tuplet<A, B>>() |
List< A > | First = new List<A>() |
List< B > | Second = new List<B>() |
bool | UniqueByPair = true |
List< Tuplet< A, B, C > > | Items = new List<Tuplet<A, B, C>>() |
System.Type | FirstType = typeof(A) |
System.Type | SecondType = typeof(B) |
System.Type | ThirdType = typeof(C) |
Protected Attributes | |
int | _position =-1 |
List< C > | Third = new List<C>() |
Dictionary< C, int > | _lookupC = new Dictionary<C, int>() |
Properties | |
int | Count [get] |
Count of tuplets in the list | |
object | Current [get] |
Properties inherited from Astra.Serialization.ITuplets2 | |
int | Count [get] |
Properties inherited from Astra.Serialization.ITuplets2T< A, B > | |
int | Count [get] |
Properties inherited from Astra.Serialization.ITuplets3 | |
int | Count [get] |
Properties inherited from Astra.Serialization.ITuplets3T< A, B, C > | |
int | Count [get] |
Contains a list of 2 type tuplets
Contains a list of 3 type tuplets
A | 1st type in each tuplet |
B | 2nd type in each tuplet |
A | 1st type in each tuplet |
B | 2nd type in each tuplet |
C | 3rd type in each tuplet |
|
inlinevirtual |
Adds a Tuple using the given elements
a | 1st element of the tuplet |
b | 2nd element of the tuplet |
|
inlinevirtual |
Adds a Tuple using the given elements
a | 1st element of the tuplet |
b | 2nd element of the tuplet |
c | 3rd element of the tuplet |
|
inlinevirtual |
Adds a Tuple to the list
tuplet | Tuplet to add |
|
inlinevirtual |
Adds a Tuple to the list
tuplet | Tuplet to add |
|
inlinevirtual |
Whether the list contains a 1st element with the given value
a | Value to look for in the 1st element |
|
inlinevirtual |
Whether the list contains a 2nd element with the given value
b | Value to look for in the 2nd element |
|
inlinevirtual |
Whether the list contains a 3rd element with the given value
c | Value to look for in the 3rd element |
|
inlinevirtual |
Retrieves a typed enumerator
Implements Astra.Serialization.ITuplets2T< A, B >.
Reimplemented in Astra.Asset.SubmeshTexMap.
|
inline |
Implements Astra.Serialization.ITuplets2T< A, B >.
|
inlinevirtual |
Retrieves a typed enumerator
Implements Astra.Serialization.ITuplets2T< A, B >.
Reimplemented in Astra.Asset.SubmeshTexMap.
|
inline |
Retrieves a generic enumerator
Implements Astra.Serialization.ITuplets2.
|
inline |
Retrieves a generic enumerator
Implements Astra.Serialization.ITuplets2.
|
inline |
Implements Astra.Serialization.ITuplets3.
|
inline |
Finds a tuplet, using the 1st element
a | Value of the 1st element to look for |
|
inline |
Retrieve the Tuplet by 1st element value
a | Value to look for in the 1st element |
|
inline |
Finds a tuplet, using the 2nd element
b | Value of the 2nd element to look for |
|
inline |
Retrieve the Tuplet by 2nd element value
b | Value to look for in the 2nd element |
|
inline |
Retrieves the tuplet at the given index
slot | Index to retrieve |
Implements Astra.Serialization.ITuplets2T< A, B >.
|
inlinevirtual |
Retrieves the Tuplet at the given index
slot | Index of the tuplet to retrieve |
Implements Astra.Serialization.ITuplets2T< A, B >.
|
inline |
Yields a tuplet back as the T type Warning: this gives you a COPY of the original, not a reference to the original! If you modify your result, you must re-upsert back in!
slot | The slot you want to fetch |
T |
R | : | T | |
R | : | new() |
|
inline |
Retrieve a generic tuplet from the given index
slot | Index of the tuplet to retrieve |
Implements Astra.Serialization.ITuplets2.
|
inline |
Retrieve a generic tuplet from the given index
slot | Index of the tuplet to retrieve |
Implements Astra.Serialization.ITuplets2.
|
inline |
Retrieve the Tuplet by 3rd element value
c | Value to look for in the 3rd element |
|
inline |
Implements Astra.Serialization.ITuplets3.
|
inline |
Find the index of the Tuplet by 1st element value
a | Value to look for in the 1st element |
|
inline |
Find the index of the Tuplet by 1st element value
a | Value to look for in the 1st element |
|
inline |
Find the index of the Tuplet by 2nd element value
b | Value to look for in the 2nd element |
|
inline |
Find the index of the Tuplet by 2nd element value
b | Value to look for in the 2nd element |
|
inline |
Find the index of the Tuplet by 3rd element value
c | Value to look for in the 3rd element |
|
inline |
Implements Astra.Serialization.ITuplets3.
|
inline |
A more efficient way to index the tuplet lookups knowing we just added to the list
record | Tuplet just added |
|
inlinevirtual |
Removes the tuplet with the given 1st element value
a | Value of the 1st element |
|
inlinevirtual |
Removes the tuplet with the given 2nd element value
b | Value of the 2nd element |
|
inlinevirtual |
Removes a tuplet at the given index
slot | Index of tuplet to remove |
reindex | Whether the tuplet list should be reindexed after this operation |
Implements Astra.Serialization.ITuplets2.
|
inlinevirtual |
Removes a tuplet at the given index
slot | Index of tuplet to remove |
reindex | Whether the tuplet list should be reindexed after this operation |
Implements Astra.Serialization.ITuplets2.
|
inlinevirtual |
Removes the tuplet with the given 1st element value
a | Value of the 1st element |
|
inlinevirtual |
Removes the tuplet with the given 2nd element value
b | Value of the 2nd element |
|
inlinevirtual |
Removes the tuplet with the given 3rd element value
c | Value of the 3rd element |
|
inline |
Adds the given tuplet into the list if it is not there, updates it if it is
tuplet | Tuplet to be added/updated |
|
inline |
Adds or updates the given tuplet in the list
tuplet | Tuplet to add/update |
|
inlinevirtual |
Adds or updates an entry, using typed values. Replaces an entry by slot, not by key/values
slot | Index of the tuple to create/replace |
a | 1st element in the Tuplet to create |
b | 2nd element in the Tuplet to create |
Implements Astra.Serialization.ITuplets2T< A, B >.
|
inlinevirtual |
Adds or updates an entry, using typed values. Replaces an entry by slot, not by key/values
slot | Index of the tuple to create/replace |
a | 1st element in the Tuplet to create |
b | 2nd element in the Tuplet to create |
c | 3rd element in the Tuplet to create |
Implements Astra.Serialization.ITuplets3T< A, B, C >.
|
inlinevirtual |
Adds or updates an entry, using generic values. Replaces an entry by slot, not by key/values
slot | Index of the tuple to create/replace |
a | 1st element in the Tuplet to create |
b | 2nd element in the Tuplet to create |
Implements Astra.Serialization.ITuplets2.
|
inlinevirtual |
Adds or updates an entry, using generic values. Replaces an entry by slot, not by key/values
slot | Index of the tuple to create/replace |
a | 1st element in the Tuplet to create |
b | 2nd element in the Tuplet to create |
c | 3rd element in the Tuplet to create |
Implements Astra.Serialization.ITuplets3.
|
inlinevirtual |
Adds or updates an entry, using a passed in tuplet. Replaces an entry by slot, not by key/values
slot | Index of the tuple to create/replace |
tuplet | Tuplet to create/replace |
|
inlinevirtual |
Adds or updates an entry, using a passed in tuplet. Replaces an entry by slot, not by key/values
slot | Index of the tuple to create/replace |
tuplet | Tuplet to create/replace |