22 void (*
constructor)(
void *
this,
size_t size,
void *input_parameter);
41 int (*
setter)(
void *
this,
size_t size,
void *input_parameter);
90 int flyweight_set(
FlyweightFactory this,
void * constructor_parameter,
void * data,
int (*setter)(
void *
this,
size_t size,
void *input_parameter));
struct flyweight_factory_t * FlyweightFactory
FlyweightFactory definition.
void flyweight_factory_free(FlyweightFactory this)
clear class handle
void * flyweight_get(FlyweightFactory this, void *constructor_parameter)
getter
void(* destructor)(void *this)
destructor
int flyweight_set(FlyweightFactory this, void *constructor_parameter, void *data, int(*setter)(void *this, size_t size, void *input_parameter))
setter
FlyweightFactory member definition, defined in flyweight.c.
struct flyweight_methods_t * FlyweightMethodsIF
int(* setter)(void *this, size_t size, void *input_parameter)
setter
void(* constructor)(void *this, size_t size, void *input_parameter)
constructor of class
FlyweightFactory flyweight_factory_new(size_t class_size, int is_threadsafe, FlyweightMethodsIF methods)
define class for flyweight
flyweight_methods_t methods
int(* equall_operand)(void *this, size_t size, void *input_parameter)
operand ==
Flyweight methods interface definition, to set flyweight_factory_new.