Hash Data Functions
Functions that set, access and delete values from the hash tables. More...Functions | |
| EAPI int | ecore_hash_set (Ecore_Hash *hash, void *key, void *value) |
| Sets a key-value pair in the given hash table. | |
| EAPI int | ecore_hash_hash_set (Ecore_Hash *hash, Ecore_Hash *set) |
| Sets all key-value pairs from set in the given hash table. | |
| EAPI void * | ecore_hash_get (Ecore_Hash *hash, const void *key) |
| Retrieves the value associated with the given key from the given hash table. | |
| EAPI void * | ecore_hash_remove (Ecore_Hash *hash, const void *key) |
| Removes the value associated with the given key in the given hash table. | |
| EAPI void * | ecore_hash_find (Ecore_Hash *hash, Ecore_Compare_Cb compare, const void *value) |
| Retrieves the first value that matches table. | |
Detailed Description
Functions that set, access and delete values from the hash tables.
Function Documentation
| EAPI void* ecore_hash_find | ( | Ecore_Hash * | hash, | |
| Ecore_Compare_Cb | compare, | |||
| const void * | value | |||
| ) |
Retrieves the first value that matches table.
- Parameters:
-
hash The given hash table. key The key to search for.
- Returns:
- The value corresponding to key on success,
NULLotherwise.
| EAPI void* ecore_hash_get | ( | Ecore_Hash * | hash, | |
| const void * | key | |||
| ) |
Retrieves the value associated with the given key from the given hash table.
- Parameters:
-
hash The given hash table. key The key to search for.
- Returns:
- The value corresponding to key on success,
NULLotherwise.
Referenced by ecore_plugin_available_get(), ecore_string_instance(), and ecore_string_release().
| EAPI int ecore_hash_hash_set | ( | Ecore_Hash * | hash, | |
| Ecore_Hash * | set | |||
| ) |
Sets all key-value pairs from set in the given hash table.
- Parameters:
-
hash The given hash table. set The hash table to import.
- Returns:
TRUEif successful,FALSEif not.
References ecore_hash_init().
| EAPI void* ecore_hash_remove | ( | Ecore_Hash * | hash, | |
| const void * | key | |||
| ) |
Removes the value associated with the given key in the given hash table.
- Parameters:
-
hash The given hash table. key The key to search for.
- Returns:
- The value corresponding to the key on success.
NULLis returned if there is an error.
Referenced by ecore_string_release().
| EAPI int ecore_hash_set | ( | Ecore_Hash * | hash, | |
| void * | key, | |||
| void * | value | |||
| ) |
Sets a key-value pair in the given hash table.
- Parameters:
-
hash The given hash table. key The key. value The value.
- Returns:
TRUEif successful,FALSEif not.
Referenced by ecore_plugin_available_get(), and ecore_string_instance().