Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public fields | Public Member Functions | List of all members
Loyc.Collections.MultiMap< K, V >.ValueList Struct Reference

Source file:
Inheritance diagram for Loyc.Collections.MultiMap< K, V >.ValueList:
Loyc.Collections.MultiMap< K, V > Loyc.Collections.ICollectionImpl< T > Loyc.Collections.IIndexed< in K, out V > Loyc.ICloneable< out T > Loyc.Collections.ICollectionSource< T > Loyc.Collections.ICollectionSink< in T > Loyc.Collections.ICollectionAndReadOnly< T > Loyc.Collections.IContains< in T > Loyc.Collections.IAdd< in T >

Public fields

MultiMap< K, V > _map
 
_key
 
int Count => GetValues()?.Count ?? 0
 
bool IsReadOnly => false
 
- Public fields inherited from Loyc.Collections.MultiMap< K, V >
IEnumerable< K > Keys => _dict.Keys
 
IEnumerable< V > Values => _dict.SelectMany(p => p.Value)
 
int KeyCount => _dict.Count
 Gets the number of keys in the underlying dictionary. More...
 
int Count => _valueCount
 Gets the number of values in all value collections. More...
 

Public Member Functions

 ValueList (MultiMap< K, V > map, K key)
 
List< V > GetValues ()
 
List< V > GetOrMakeValues ()
 
void Add (V item)
 
void Clear ()
 
bool Contains (V item)
 
void CopyTo (V[] array, int arrayIndex)
 
IEnumerator< V > IEnumerable< V >. GetEnumerator ()
 
IEnumerator IEnumerable. GetEnumerator ()
 
List< V >.Enumerator GetEnumerator ()
 
bool Remove (V item)
 
- Public Member Functions inherited from Loyc.Collections.MultiMap< K, V >
 MultiMap (IEnumerable< KeyValuePair< K, V >> pairs, IEqualityComparer< K >?comp=null)
 
 MultiMap (Dictionary< K, List< V >> dict)
 
 MultiMap (MultiMap< K, V > map)
 
 MultiMap (IEqualityComparer< K >?comp)
 
bool ContainsKey (K key)
 
IEnumerator< KeyValuePair< K, V > > GetEnumerator ()
 
bool TryGetValue (K key, [MaybeNullWhen(false)] out ValueList value)
 The collection returned is always valid, but the method returns true only if the collection is not empty. More...
 
void Add (KeyValuePair< K, V > item)
 
void Clear ()
 
bool Contains (KeyValuePair< K, V > item)
 
void CopyTo (KeyValuePair< K, V >[] array, int arrayIndex)
 
bool Remove (KeyValuePair< K, V > item)
 
bool Remove (K key)
 
MultiMap< K, V > Clone ()
 
- Public Member Functions inherited from Loyc.Collections.ICollectionSource< T >
void CopyTo (T[] array, int arrayIndex)
 Copies the elements of the collection to an Array, starting at a particular array index. More...
 
- Public Member Functions inherited from Loyc.Collections.IContains< in T >
bool Contains (T item)
 Returns true if and only if the collection contains the specified item. More...
 
- Public Member Functions inherited from Loyc.Collections.ICollectionSink< in T >
bool Remove (T item)
 
- Public Member Functions inherited from Loyc.Collections.IAdd< in T >
void Add (T item)
 

Additional Inherited Members

- Properties inherited from Loyc.Collections.MultiMap< K, V >
MultiMap< K, V >.ValueList this[K key] [get]
 
- Properties inherited from Loyc.Collections.IIndexed< in K, out V >
this[K key] [get]
 Gets the value associated with the specified key. More...