RB.StringValueMap¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class RB.StringValueMap(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Simplifies the use of string:GValue maps with respect to copying of the values inserted into the map. Except for
RB.StringValueMap.peek, the caller retains ownership of values passed in, and assumes ownership of all values returned.- classmethod new()¶
- Returns:
new empty
RB.StringValueMap- Return type:
Creates a new
RB.StringValueMap
- get(key, out)¶
- Parameters:
key (
str) – key to retrieveout (
GObject.Value) – returns a copy of the value in the map
- Returns:
Trueif the value was found- Return type:
Locates and copies the value associated with the key.
- peek(key)¶
- Parameters:
key (
str) – key to retrieve- Returns:
the
GObject.Valueassociated with the key- Return type:
Locates the value associated with the key. This returns the
GObject.Valuestored in the map, so it cannot be modified.
- remove(key)¶
-
Removes a value from the map.
- set(key, value)¶
- Parameters:
key (
str) – key to setvalue (
GObject.Value) – value to store
Inserts a value into the map. The value is copied.
- steal_hashtable()¶
- Returns:
GLib.HashTablefrom the map- Return type:
Extracts and returns the underlying hash table from the map, and creates a new empty map.