Go to the source code of this file.
|
| static int | get_obj_type_num_entries (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, int *num_values, int *num_indexes, int *num_chars) |
| |
| static int | obj_create (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj) |
| |
| static int | obj_reinit (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void *obj) |
| |
| static int | extract_state (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void *obj, int num_values, RTOp_value_type value_data[], int num_indexes, RTOp_index_type index_data[], int num_chars, RTOp_char_type char_data[]) |
| |
| static int | load_state (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, int num_values, const RTOp_value_type value_data[], int num_indexes, const RTOp_index_type index_data[], int num_chars, const RTOp_char_type char_data[], void **obj) |
| |
| static int get_obj_type_num_entries |
( |
const struct RTOp_obj_type_vtbl_t * |
vtbl, |
|
|
const void * |
instance_data, |
|
|
int * |
num_values, |
|
|
int * |
num_indexes, |
|
|
int * |
num_chars |
|
) |
| |
|
static |
Initial value:=
{
}
static int extract_state(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void *obj, int num_values, RTOp_value_type value_data[], int num_indexes, RTOp_index_type index_data[], int num_chars, RTOp_char_type char_data[])
static int load_state(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, int num_values, const RTOp_value_type value_data[], int num_indexes, const RTOp_index_type index_data[], int num_chars, const RTOp_char_type char_data[], void **obj)
static int obj_create(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
static int get_obj_type_num_entries(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, int *num_values, int *num_indexes, int *num_chars)
int RTOp_obj_free_free(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
static int obj_reinit(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void *obj)
Virtual function table for a simple object of a {RTOp_value_type,RTOp_value_type} pair.
The functions do the following:
-
get_obj_type_num_entries(...)
-
vtbl [in] Ignored
-
instance_data [in] Ignored
-
num_values [out] Returns 2
-
num_indexes [out] Returns 0
-
num_chars [out] Returns 0
-
obj_create(...)
-
vtbl [in] Ignored
-
instance_data [in] Ignored
-
obj [out] Points an allocated to a RTOp_value_value_type object initialized to {0.0,0.0}
-
obj_reinit(...)
-
vtbl [in] Ignored
-
instance_data [in] Ignored
-
obj [in/out] RTOp_value_value_type object reinitialized to {0.0,0.0}
-
obj_free(...)
-
vtbl [in] Ignored
-
instance_data [in] Ignored
-
obj [in/out] allocated object is freed and obj is set to NULL.
-
extract_state(...)
-
vtbl [in] Ignored
-
instance_data [in] Ignored
-
obj [in] Allocated RTOp_value_value_type object.
-
num_values [in] Must be 2
-
value_data [out]
-
value_data[0] = ((RTOp_value_value_type*)obj->value1)
-
value_data[1] = ((RTOp_value_value_type*)obj->value2)
-
num_indexes [in] Must be 0
-
index_data [out] Must be NULL
-
num_chars [in] Must be 0
-
char_data [out] Must be NULL
-
load_state(...)
-
vtbl [in] Ignored
-
instance_data [in] Ignored
-
num_values [in] Must be 2
-
value_data [in] Array (size 2)
-
num_indexes [in] Must be 0
-
index_data [in] Must be NULL
-
num_chars [in] Must be 0
-
char_data [in] Must be NULL
-
obj [in/out] If *obj == NULL then *obj = malloc(sizeof(RTOp_value_value_type)) and *(RTOp_value_value_type)*obj = {value_data[0],value_data[1]}
Definition at line 148 of file RTOp_obj_value_value_vtbl.c.