Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
function< TObject, TParameter > Class Template Reference
[function]
A derived function template that takes an object type and parameter type. More...
#include <function.h>
Inherits etl::ifunction< TParameter >.
Public Types | |
| typedef TObject | object_type |
| The type of object. | |
| typedef TParameter | parameter_type |
| The type of parameter sent to the function. | |
Public Member Functions | |
| function (TObject &object_, void(TObject::*p_function_)(TParameter)) | |
| Constructor. | |
| virtual void | operator() (TParameter data) |
| The function operator that calls the destination function. | |
Detailed Description
template<typename TObject, typename TParameter>
class etl::function< TObject, TParameter >
A derived function template that takes an object type and parameter type.
- Template Parameters:
-
TObject The object type that contains the member function. TParameter The parameter type accepted by the member function.
Definition at line 89 of file function.h.
Member Typedef Documentation
| typedef TObject object_type |
The type of object.
Definition at line 93 of file function.h.
| typedef TParameter parameter_type |
The type of parameter sent to the function.
Reimplemented from ifunction< TParameter >.
Definition at line 94 of file function.h.
Constructor & Destructor Documentation
| function | ( | TObject & | object_, |
| void(TObject::*)(TParameter) | p_function_ | ||
| ) |
Constructor.
- Parameters:
-
object Reference to the object p_function Pointer to the member function
Definition at line 101 of file function.h.
Member Function Documentation
| virtual void operator() | ( | TParameter | data ) | [virtual] |
The function operator that calls the destination function.
- Parameters:
-
data The data to pass to the function.
Implements ifunction< TParameter >.
Definition at line 111 of file function.h.
Generated on Tue Jul 12 2022 14:05:50 by
1.7.2