MultiMap
Object Hierarchy:
Description:
[ GenericAccessors ]
public interface MultiMap<K,V> : Object
A map with multiple values per key.
All known implementing classes:
Content:
Properties:
- public Type key_type { get; }
The type of the keys in this multimap.
- public abstract bool read_only { get; }
Specifies whether this collection can change - i.e. whether
set, remove
etc. are legal operations.
- public virtual MultiMap<K,V> read_only_view { owned get; }
- public abstract int size { get; }
The number of key/value pairs in this map.
- public Type value_type { get; }
The type of the values in this multimap.
Methods:
- public abstract Collection<V> @get (K key)
Returns the values for the specified key in this map.
- public abstract void @set (K key, V value)
Inserts a key/value pair into this map.
- public abstract void clear ()
Removes all items from this collection.
- public abstract bool contains (K key)
Determines whether this map contains the specified key.
- public abstract MultiSet<K> get_all_keys ()
Returns the keys of this multimap as a read-only set.
- public abstract Set<K> get_keys ()
Returns the keys of this multimap as a read-only set.
- public abstract Collection<V> get_values ()
Returns the values of this map as a read-only collection.
- public abstract MapIterator<K,V> map_iterator ()
Returns an iterator for this map.
- public abstract bool remove (K key, V value)
Removes the specified key/value pair from this multimap.
- public abstract bool remove_all (K key)
Removes the specified key and all the associated values from this
multimap.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref