44 #include "RTOp_obj_values_vtbl.h"
45 #include "RTOp_obj_free_free.h"
53 ,
const void* instance_data
59 *num_values = *(RTOp_index_type*)instance_data;
70 num_values = *(RTOp_index_type*)instance_data,
71 mem_size =
sizeof(RTOp_value_type) * num_values;
72 *obj = malloc( mem_size );
73 for( k = 0; k < num_values; ++k )
74 ((RTOp_value_type*)*obj)[k] = 0.0;
81 const int num_values = *(RTOp_index_type*)instance_data;
83 for( k = 0; k < num_values; ++k )
84 ((RTOp_value_type*)obj)[k] = 0.0;
90 ,
const void * instance_data
93 ,RTOp_value_type value_data[]
95 ,RTOp_index_type index_data[]
97 ,RTOp_char_type char_data[]
100 int num_values_state;
102 assert(instance_data);
103 num_values_state = *(RTOp_index_type*)instance_data;
105 assert( num_values == num_values_state );
106 assert( num_indexes == 0 );
107 assert( num_chars == 0 );
108 for( k = 0; k < num_values; ++k )
109 value_data[k] = ((RTOp_value_type*)obj)[k];
115 ,
const void * instance_data
117 ,
const RTOp_value_type value_data[]
119 ,
const RTOp_index_type index_data[]
121 ,
const RTOp_char_type char_data[]
125 int num_values_state;
127 assert(instance_data);
128 num_values_state = *(RTOp_index_type*)instance_data;
130 assert( num_values == num_values_state );
131 assert( num_indexes == 0 );
132 assert( num_chars == 0 );
135 for( k = 0; k < num_values; ++k )
136 ((RTOp_value_type*)*obj)[k] = value_data[k];
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(* obj_create)(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
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[])
int(* obj_reinit)(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void *obj)
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)