Oyranos
git-devel
Oyranos is a full featured Color Management System
|
A cache entry. More...
#include <oyHash_s.h>
Public Member Functions | |
OYAPI oyHash_s *OYEXPORT | oyHash_New (oyObject_s object) |
allocate a new Hash object More... | |
OYAPI oyHash_s *OYEXPORT | oyHash_Copy (oyHash_s *hash, oyObject_s object) |
Copy or Reference a Hash object. More... | |
OYAPI int OYEXPORT | oyHash_Release (oyHash_s **hash) |
release and possibly deallocate a oyHash_s object More... | |
oyHash_s * | oyHash_Create (const char *hash_text, oyObject_s object) |
Create a new Oyranos cache entry. More... | |
oyOBJECT_e | oyHash_GetType (oyHash_s *hash) |
get Hash entries type More... | |
int | oyHash_IsOf (oyHash_s *hash, oyOBJECT_e type) |
Hash is of type. More... | |
int | oyHash_SetPointer (oyHash_s *hash, oyStruct_s *obj) |
oyStruct_s * | oyHash_GetPointer (oyHash_s *hash, oyOBJECT_e type) |
Public Member Functions inherited from oyStruct_s | |
const char * | oyStruct_GetTextFromModule (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
get object infos from a module More... | |
const char * | oyStruct_GetText (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
Get a text dump. More... | |
int | oyStruct_RegisterStaticMessageFunc (int type, oyStruct_RegisterStaticMessageFunc_f msg, oyStruct_RegisterStaticFreeFunc_f free_func) |
register a function for verbosity More... | |
const char * | oyStruct_GetInfo (oyPointer context_object, oyNAME_e type, int flags) |
get a additional string from a object More... | |
const char * | oyStructTypeToText (oyOBJECT_e type) |
Objects type to small string. More... | |
Data Fields | |
const oyOBJECT_e | type_ |
Type of object. More... | |
oyStruct_Copy_f | copy |
Copy function. More... | |
oyStruct_Release_f | release |
Release function. More... | |
oyObject_s | oy_ |
Oyranos internal object. More... | |
Data Fields inherited from oyStruct_s | |
const oyOBJECT_e | type_ |
Type of object. More... | |
oyStruct_Copy_f | copy |
Copy function. More... | |
oyStruct_Release_f | release |
Release function. More... | |
oyObject_s | oy_ |
Oyranos internal object. More... | |
A cache entry.
Combine hash, description and oyPointer to one searchable struct. The struct can be used in a oyStructList_s for a hash map or searchable cache. Memory management is done by Oyranos' oyAllocateFunc_ and oyDeallocateFunc_.
OYAPI oyHash_s *OYEXPORT oyHash_Copy | ( | oyHash_s * | hash, |
oyObject_s | object | ||
) |
Copy or Reference a Hash object.
Function oyHash_Copy
The function is for copying and for referencing. The reference is the most often used way, which saves resourcs and time.
[in] | hash | Hash struct object |
object | NULL - means reference, the optional object triggers a real copy |
oyHash_s * oyHash_Create | ( | const char * | hash_text, |
oyObject_s | object | ||
) |
Create a new Oyranos cache entry.
Function oyHash_Create
oyStruct_s * oyHash_GetPointer | ( | oyHash_s * | hash, |
oyOBJECT_e | type | ||
) |
Function oyHash_GetPointer
oyOBJECT_e oyHash_GetType | ( | oyHash_s * | hash | ) |
get Hash entries type
Function oyHash_GetType
int oyHash_IsOf | ( | oyHash_s * | hash, |
oyOBJECT_e | type | ||
) |
Hash is of type.
Function oyHash_IsOf
OYAPI oyHash_s *OYEXPORT oyHash_New | ( | oyObject_s | object | ) |
allocate a new Hash object
Function oyHash_New
OYAPI int OYEXPORT oyHash_Release | ( | oyHash_s ** | hash | ) |
release and possibly deallocate a oyHash_s object
Function oyHash_Release
[in,out] | hash | Hash struct object |
int oyHash_SetPointer | ( | oyHash_s * | hash, |
oyStruct_s * | obj | ||
) |
Function oyHash_SetPointer
[in,out] | hash | the to be set hash |
[in,out] | obj | the to be referenced object |
oyStruct_Copy_f oyHash_s::copy |
Copy function.
oyObject_s oyHash_s::oy_ |
Oyranos internal object.
Features name and hash. Do not change during object life time.
oyStruct_Release_f oyHash_s::release |
Release function.
const oyOBJECT_e oyHash_s::type_ |
Type of object.
The struct type tells Oyranos how to interprete hidden fields.