|
libcomps ..
|
#include <comps_obj.h>
Data Fields | |
| size_t | obj_size |
| void(*) | constructor (COMPS_Object *, COMPS_Object **) |
| void(*) | destructor (COMPS_Object *) |
| void(*) | copy (COMPS_Object *, COMPS_Object *) |
| COMPS_Object *(*) | deep_copy (COMPS_Object *, COMPS_Object *) |
| signed char(*) | obj_cmp (COMPS_Object *, COMPS_Object *) |
| char *(*) | to_str (COMPS_Object *) |
Structure holding all importating callback functions supporting COMPS_Object derivate proper behavior. All callbacks except constructor and destructor are optional
| void(*) COMPS_ObjectInfo::constructor(COMPS_Object *, COMPS_Object **) |
pointer to derivate object constructor
| void(*) COMPS_ObjectInfo::copy(COMPS_Object *, COMPS_Object *) |
pointer to derivate object copy function
| COMPS_Object *(*) COMPS_ObjectInfo::deep_copy(COMPS_Object *, COMPS_Object *) |
currently unused
| void(*) COMPS_ObjectInfo::destructor(COMPS_Object *) |
pointer to derivate objects destructor
| signed char(*) COMPS_ObjectInfo::obj_cmp(COMPS_Object *, COMPS_Object *) |
pointer to comparator function
| size_t COMPS_ObjectInfo::obj_size |
size of derivate object which is sizeof(obj)
| char *(*) COMPS_ObjectInfo::to_str(COMPS_Object *) |
pointer to string representation convert function