Craig's Utility Library
4.0 Beta
|
Maps a key to a list of data More...
Public Member Functions | |
ListMapping () | |
Constructor More... | |
virtual void | Add (T1 Key, T2 Value) |
Adds an item to the mapping More... | |
virtual void | Add (KeyValuePair< T1, IEnumerable< T2 >> item) |
Adds a key value pair More... | |
virtual void | Add (T1 Key, IEnumerable< T2 > Value) |
Adds a list of items to the mapping More... | |
virtual void | Clear () |
Clears all items from the listing More... | |
virtual bool | Contains (KeyValuePair< T1, IEnumerable< T2 >> item) |
Does this contain the key value pairs? More... | |
virtual bool | Contains (T1 Key, IEnumerable< T2 > Values) |
Does the list mapping contain the key value pairs? More... | |
bool | Contains (T1 Key, T2 Value) |
Does the list mapping contain the key value pair? More... | |
virtual bool | ContainsKey (T1 key) |
Determines if a key exists More... | |
void | CopyTo (KeyValuePair< T1, IEnumerable< T2 >>[] array, int arrayIndex) |
Not implemented More... | |
IEnumerator< KeyValuePair< T1, IEnumerable< T2 > > > | GetEnumerator () |
Gets the enumerator More... | |
virtual bool | Remove (T1 key) |
Remove a list of items associated with a key More... | |
virtual bool | Remove (KeyValuePair< T1, IEnumerable< T2 >> item) |
Removes a key value pair from the list mapping More... | |
virtual bool | Remove (T1 Key, T2 Value) |
Removes a key value pair from the list mapping More... | |
override string | ToString () |
Returns a System.String that represents this instance. More... | |
virtual bool | TryGetValue (T1 Key, out IEnumerable< T2 > Value) |
Tries to get the value associated with the key More... | |
Properties | |
virtual int | Count [get] |
The number of items in the listing More... | |
bool | IsReadOnly [get] |
Not read only More... | |
virtual ICollection< T1 > | Keys [get] |
The list of keys within the mapping More... | |
ICollection< IEnumerable< T2 > > | Values [get] |
List that contains the list of values More... | |
ConcurrentDictionary< T1, ConcurrentBag< T2 > > | Items [get] |
Container holding the data More... | |
virtual IEnumerable< T2 > | this[T1 key] [get, set] |
Gets a list of values associated with a key More... | |
Maps a key to a list of data
T1 | Key value |
T2 | Type that the list should contain |
Definition at line 36 of file ListMapping.cs.
Utilities.DataTypes.ListMapping< T1, T2 >.ListMapping | ( | ) |
Constructor
Definition at line 41 of file ListMapping.cs.
|
virtual |
Adds an item to the mapping
Key | Key value |
Value | The value to add |
Definition at line 105 of file ListMapping.cs.
|
virtual |
Adds a key value pair
item | Key value pair to add |
Definition at line 117 of file ListMapping.cs.
|
virtual |
Adds a list of items to the mapping
Key | Key value |
Value | The values to add |
Definition at line 127 of file ListMapping.cs.
|
virtual |
Clears all items from the listing
Definition at line 138 of file ListMapping.cs.
|
virtual |
Does this contain the key value pairs?
item | Key value pair to check |
Definition at line 148 of file ListMapping.cs.
|
virtual |
Does the list mapping contain the key value pairs?
Key | Key value |
Values | Value |
Definition at line 163 of file ListMapping.cs.
bool Utilities.DataTypes.ListMapping< T1, T2 >.Contains | ( | T1 | Key, |
T2 | Value | ||
) |
Does the list mapping contain the key value pair?
Key | Key |
Value | Value |
Definition at line 179 of file ListMapping.cs.
|
virtual |
Determines if a key exists
key | Key to check on |
Definition at line 193 of file ListMapping.cs.
void Utilities.DataTypes.ListMapping< T1, T2 >.CopyTo | ( | KeyValuePair< T1, IEnumerable< T2 >>[] | array, |
int | arrayIndex | ||
) |
Not implemented
array | Array to copy to |
arrayIndex | array index |
Definition at line 203 of file ListMapping.cs.
IEnumerator<KeyValuePair<T1, IEnumerable<T2> > > Utilities.DataTypes.ListMapping< T1, T2 >.GetEnumerator | ( | ) |
Gets the enumerator
Definition at line 212 of file ListMapping.cs.
|
virtual |
Remove a list of items associated with a key
key | Key to use |
Definition at line 223 of file ListMapping.cs.
|
virtual |
Removes a key value pair from the list mapping
item | items to remove |
Definition at line 234 of file ListMapping.cs.
|
virtual |
Removes a key value pair from the list mapping
Key | Key to remove |
Value | Value to remove |
Definition at line 250 of file ListMapping.cs.
override string Utilities.DataTypes.ListMapping< T1, T2 >.ToString | ( | ) |
Returns a System.String that represents this instance.
Definition at line 280 of file ListMapping.cs.
|
virtual |
Tries to get the value associated with the key
Key | Key value |
Value | The values getting |
Definition at line 296 of file ListMapping.cs.
|
get |
The number of items in the listing
Definition at line 50 of file ListMapping.cs.
|
get |
Not read only
Definition at line 58 of file ListMapping.cs.
|
getprotected |
Container holding the data
Definition at line 87 of file ListMapping.cs.
|
get |
The list of keys within the mapping
Definition at line 66 of file ListMapping.cs.
|
getset |
Gets a list of values associated with a key
key | Key to look for |
Definition at line 95 of file ListMapping.cs.
|
get |
List that contains the list of values
Definition at line 74 of file ListMapping.cs.