| Top |
| GQuark | fo_hash_table_error_quark () |
| FoHashTable * | fo_hash_table_new () |
| void | fo_hash_table_insert () |
| void | fo_hash_table_replace () |
| gboolean | fo_hash_table_remove () |
| FoObject * | fo_hash_table_lookup () |
| guint | fo_hash_table_size () |
GQuark
fo_hash_table_error_quark (void);
Get the error quark for FoHashTable.
If the quark does not yet exist, create it.
FoHashTable *
fo_hash_table_new (void);
Creates a new FoHashTable initialized to default value.
void fo_hash_table_insert (FoHashTable *fo_hash_table,FoObject *key,FoObject *value,GError **error);
Inserts value
as the value corresponding to key
in
fo_hash_table
.
fo_hash_table |
FoHashTable in which to insert. |
|
key |
Key at which to insert. |
|
value |
Value to insert. |
|
error |
GError with information about error that occurred. |
void fo_hash_table_replace (FoHashTable *fo_hash_table,FoObject *key,FoObject *value,GError **error);
Replaces the key-value pair in fo_hash_table
that has a key
matching key
.
fo_hash_table |
FoHashTable in which to replace. |
|
key |
Key of key-value pair to replace. |
|
value |
New value. |
|
error |
GError with information about error that occurred. |
gboolean fo_hash_table_remove (FoHashTable *fo_hash_table,FoObject *key,GError **error);
Removes the key-value pair with key matching key
from
fo_hash_table
.
fo_hash_table |
FoHashTable from which to remove a key-value pair. |
|
key |
Key of pair to remove. |
|
error |
GError with information about error that occurred. |
FoObject * fo_hash_table_lookup (FoHashTable *fo_hash_table,FoObject *key,GError **error);
Gets the value associated with key
in fo_hash_table
.
fo_hash_table |
FoHashTable in which to look. |
|
key |
Key value against which to compare. |
|
error |
GError with information about error that occurred. |
guint
fo_hash_table_size (FoHashTable *fo_hash_table);
Gets the number of key-value pairs in fo_hash_table
.