design_pattern_for_c
V 1.00
|
PrototypeFactory methods interface definition, to set prototype_register. More...
#include <prototype.h>
Data Fields | |
void *(* | clone )(void *base, size_t base_length) |
clone api of a base data, to do deep copy More... | |
void(* | free )(void *cloned_data) |
free api of a clone data, to do deep copy More... | |
void(* | free_base )(void *base_data) |
free api of a base data, please free deep data More... | |
PrototypeFactory methods interface definition, to set prototype_register.
Definition at line 28 of file prototype.h.
void*(* clone) (void *base, size_t base_length) |
clone api of a base data, to do deep copy
[in] | base | base data pointer |
[in] | base_length | base data length |
Definition at line 36 of file prototype.h.
void(* free) (void *cloned_data) |
free api of a clone data, to do deep copy
[in] | cloned_data | cloned data by using clone function pointer in this prototype_factory_method_t structure |
[in] | base_length | base data length |
Definition at line 44 of file prototype.h.
void(* free_base) (void *base_data) |
free api of a base data, please free deep data
[in] | base_data | base data registered by prototype_register |
Definition at line 51 of file prototype.h.