Download

Support

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, NULL otherwise.
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, NULL otherwise.
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:
TRUE if successful, FALSE if 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. NULL is returned if there is an error.
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:
TRUE if successful, FALSE if not.

Copyright © Enlightenment.org

Ecore Documentation Generated: Sat Sep 5 11:39:02 2009