mbed-os/hal
Christopher Haster f396e3165f Added improved FuncPtr type
FuncPtr provides a more flexible templated function class as a
replacement for FunctionPointer.

FuncPtr provides an intuitive template interface:

void doit(int, char *);
FuncPtr<void(int, char *)> doit_ptr(doit);
doit_ptr(10, "hi!");

FuncPtr places memory management on the user, only supporting
storing an extra pointer for pointers to externally stored objects
that can be passed to the function. Additional binding can be
supplied by an external class.

FuncPtr<void(int)> hello(&object, &Object::method);

Additionally FuncPtr provides a copy constructor, allowing FuncPtrs
themselves to be passed to existing interfaces.

FuncPtr<void()> hello(doit); ticker.attach(hello, 1000);
2016-04-06 08:01:28 -05:00
..
api Added improved FuncPtr type 2016-04-06 08:01:28 -05:00
common Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
hal Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
targets Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
.yotta_ignore Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
CMakeLists.txt Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
module.json Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00