![]() |
Oyranos Color Management System API - Version 0.9.6 |
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... | |
oyHash_Copy | |
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) |
![]() | |
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... | |
oyStruct_RegisterStaticMessageFunc | |
register a function for verbosity More... | |
oyStruct_GetInfo | |
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... | |
![]() | |
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_.
oyHash_Copy |
Copy or Reference a Hash object.
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 |
Referenced by oyCacheListGetEntry_().
oyHash_s * oyHash_Create | ( | const char * | hash_text, |
oyObject_s | object | ||
) |
Create a new Oyranos cache entry.
Function oyHash_Create
Referenced by oyCacheListGetEntry_().
oyStruct_s * oyHash_GetPointer | ( | oyHash_s * | hash, |
oyOBJECT_e | type | ||
) |
Function oyHash_GetPointer
Referenced by oyPointer_s::oyPointer_LookUpFromText(), and oyStructList_s::oyStructList_GetHashStruct().
oyOBJECT_e oyHash_GetType | ( | oyHash_s * | hash | ) |
get Hash entries type
Function oyHash_GetType
References type_.
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 | ) |
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 |
References oyOBJECT_HASH_S.
Referenced by oyCacheListGetEntry_(), oyPointer_s::oyPointer_LookUpFromText(), and oyStructList_s::oyStructList_GetHashStruct().
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 |
Referenced by oyPointer_s::oyPointer_LookUpFromText().
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.
Referenced by oyCacheListGetEntry_().
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.
Referenced by oyHash_GetType().