|
Astra Unity 2.6.6
Astra Unity Plugin
|
Serializable dictionary that uses tuplets as key/value pairs More...

Classes | |
| class | SerializableDictionaryEnumerator |
| Enumerator for this dictionary More... | |
Public Member Functions | |
| Type | GetKeyType () |
| Retreives the type of the key element More... | |
| Type | GetValType () |
| Retreives the type of the value element More... | |
| void | Clear () |
| Clears the dictionary | |
| void | CopyTo (KeyValuePair< A, B >[] pairs, int index) |
| Defined in the IDictionary interface, but not implemented here | |
| bool | Contains (KeyValuePair< A, B > pair) |
| Whether the given key is found in the dictionary More... | |
| void | Add (KeyValuePair< A, B > pair) |
| Adds the given key/value pair into the dictionary More... | |
| bool | Remove (KeyValuePair< A, B > pair) |
| Removes the given key/value pair from the dictionary More... | |
| bool | ContainsKey (A a) |
| Whether the dictionary contains this key More... | |
| bool | ContainsValue (B b) |
| Whether the dictionary contains this value More... | |
| void | Add (A a, B b) |
| Adds this key/value pair to the dictionary More... | |
| bool | Remove (A a) |
| Removes this key/value pair from the dictionary More... | |
| Tuplet< A, B > | GetFromSlot (int slot) |
| Retrieves the tuplet at a given index More... | |
| B | GetSecondFromSlot (int slot) |
| Get the 2nd element (the value) from a given index More... | |
| bool | TryGetValue (A a, out B b) |
| Attempts to retrieve the value for the given key. Returns false if the key does not exist in this dictionary. More... | |
| void | OnBeforeSerialize () |
| Implementation for Unity ISerializationCallbackReceiver | |
| void | OnAfterDeserialize () |
| Implementation for Unity ISerializationCallbackReceiver | |
| virtual void | Upsert (System.Object a, System.Object b) |
| Adds or updates the value for the given key More... | |
| void | RemoveKey (System.Object a) |
| Removes the tuplet for the given key More... | |
| SerializableDictionaryEnumerator | GetEnumerator () |
| Retrieves an enumerator for this dictionary | |
| System.Collections.IEnumerator | GetEnumeratorGeneric () |
| Retreives a generic enumerator for this dictionary More... | |
Protected Attributes | |
| Tuplets< A, B > | __tuplets = null |
Properties | |
| virtual Tuplets< A, B > | _tuplets [getset] |
| int | Count [get] |
| Count of tuplets in the dictionary | |
| ICollection< A > | Keys [get] |
| Retreives the list of keys | |
| ICollection< B > | Values [get] |
| Retrieves the list of values | |
| bool | IsReadOnly [get] |
| Whether this is read only | |
| B | this[A key] [getset] |
| Returns the value from the given key More... | |
Properties inherited from Astra.Serialization.ISerializableDictionary | |
| int | Count [get] |
Serializable dictionary that uses tuplets as key/value pairs
| A | Type of the key element |
| B | Type of the value element |
|
inline |
Adds this key/value pair to the dictionary
| a | Key to add |
| b | Value to add |
|
inline |
Adds the given key/value pair into the dictionary
| pair | Key/value pair to add |
|
inline |
Whether the given key is found in the dictionary
| pair | Key/value pair to check whether the key value exists in this dictionary |
|
inline |
Whether the dictionary contains this key
| a | Key to look for |
|
inline |
Whether the dictionary contains this value
| b | Value to look for |
|
inline |
Retreives a generic enumerator for this dictionary
Implements Astra.Serialization.ISerializableDictionary.
|
inline |
Retrieves the tuplet at a given index
| slot | Index to return the tuplet from |
|
inline |
Retreives the type of the key element
Implements Astra.Serialization.ISerializableDictionary.
|
inline |
Get the 2nd element (the value) from a given index
| slot | Index to get the value from |
|
inline |
Retreives the type of the value element
Implements Astra.Serialization.ISerializableDictionary.
|
inline |
Removes this key/value pair from the dictionary
| a | Key to remove |
|
inline |
Removes the given key/value pair from the dictionary
| pair | Key/value pair to remove (pair is found by key) |
|
inline |
Removes the tuplet for the given key
| a | Key to remove |
Implements Astra.Serialization.ISerializableDictionary.
|
inline |
Attempts to retrieve the value for the given key. Returns false if the key does not exist in this dictionary.
| a | Key to retrieve |
| b | Value from the given key |
|
inlinevirtual |
Adds or updates the value for the given key
| a | Key to add/update |
| b | Value to set for this key |
Implements Astra.Serialization.ISerializableDictionary.
|
getset |
Returns the value from the given key
| key | Key to retrieve the value for |