#include <RTOp.h>
Public Attributes | |
| 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(* | obj_reinit )(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void *obj) |
| int(* | obj_free )(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(* | 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) |
The functions pointed to in this table create, initialize and destroy a simple object (some struct) and also the structure of the object. Functions are also declared for allowing the state of the objects to be externalized into a simple portable format. This virtual function pointer table is used for the object instance data for RTOp_RTOp objects and also for the manipulation of reduction objects. Since it is expected that the same type of structure can be used and reused in several different contexts, they all share this same virtual function table type.
The uses of these functions and the meanings of their arguments may depend on the context of where the vtbl is used.
Definition at line 850 of file RTOp.h.
|
|
Returns the number of entries of each type of member that defines the externalized object state. This function returns the number of entries of values, indexes and characters (see above) that defines the externalized object state.
When this vtbl is used to handle the instance data for an
When this vtbl is used to handle the reduction object the function arguments have the following meaning:
If the object is
|
|
|
Create (dynamically) an object of this type.
When this vtbl is used to handle the instance data for an
When this vtbl is used to handle the reduction target object for an
If the object is
|
|
|
Reinitialize an object of this type.
If
When this vtbl is used to handle the instance data for a
When this vtbl is used to handle the reduction object for an
|
|
|
Destroy an object of this type.
If
When this vtbl is used to handle the instance data for an
When this vtbl is used to handle the reduction object for an
|
|
|
Externalize the state of the object to a portable format. This function must be called on an initalized object. It is very important that these data contain all the information needed to perform the reduction operation using the externalized MPI compatilble operator function returned from RTOp_get_reduct_op<tt>(...) when this is used for a reduction object used in a reduction operation.
|
|
|
Load the state of the object from a portable format.
This function can be called on an already constructed object (
|
1.3.9.1