struct base_target_ops

Defined at line 42 of file ../../sdk/lib/fit/include/lib/fit/internal/function.h

target_ops is the vtable for the function_base class. The base_target_ops struct holds functions

that are common to all function_base instantiations, regardless of the function's signature.

The derived target_ops template that adds the signature-specific invoke method.

Splitting the common functions into base_target_ops allows all function_base instantiations to

share the same vtable for their null function instantiation, reducing code size.

Public Members

const void *(*)(void *, const void *) target_type_id
void *(*)(void *) get
void (*)(void *, void *) move
void (*)(void *) destroy

Protected Methods

void base_target_ops (decltype(target_type_id) target_type_id_func, decltype(get) get_func, decltype(move) move_func, decltype(destroy) destroy_func)

Aggregate initialization isn't supported with inheritance until C++17, so define a constructor.

Defined at line 50 of file ../../sdk/lib/fit/include/lib/fit/internal/function.h