Embedded Template Library 1.0
|
A set of wrapper templates to allow a member or static function to be called without the caller having to know the specific details of the callee. This template class may be used to link interrupt vectors to specific member functions of a handler class.
class etl::ifunction |
The base interface template for function template specialisations.
TParameter | The parameter type expected by the function. |
Public Types | |
typedef TParameter | parameter_type |
The type of parameter sent to the function. | |
Public Member Functions | |
virtual void | operator() (TParameter) const =0 |
The function operator that will be overridden. More... | |
|
pure virtual |
The function operator that will be overridden.
Implemented in etl::function_mp< etl::callback_service< RANGE, 0U >, size_t, &etl::callback_service< RANGE, 0U >::unhandled >, etl::function_mp< etl::callback_service< RANGE, OFFSET >, size_t, &etl::callback_service< RANGE, OFFSET >::unhandled >, etl::function< TObject, TParameter >, etl::function< void, TParameter >, etl::function_mp< TObject, TParameter, Function >, etl::function_imp< TObject, TParameter, Instance, Function >, and etl::function_fp< TParameter, Function >.
class etl::ifunction< void > |
The base interface template for functions taking void parameters.
Public Types | |
typedef void | parameter_type |
The type of parameter sent to the function. | |
Public Member Functions | |
virtual void | operator() () const =0 |
The function operator that will be overridden. More... | |
|
pure virtual |
The function operator that will be overridden.
Implemented in etl::function< TObject, void >, etl::function< void, void >, etl::function_mv< TObject, Function >, etl::function_imv< TObject, Instance, Function >, and etl::function_fv< Function >.
class etl::function |
A derived function template that takes an object type and parameter type.
TObject | The object type that contains the member function. |
TParameter | The parameter type accepted by the member function. |
Public Types | |
typedef TObject | object_type |
The type of object. | |
typedef TParameter | parameter_type |
The type of parameter sent to the function. | |
![]() | |
typedef TParameter | parameter_type |
The type of parameter sent to the function. | |
Public Member Functions | |
function (TObject &object_, void(TObject::*p_function_)(TParameter)) | |
virtual void | operator() (TParameter data) const ETL_OVERRIDE |
virtual void | operator() (TParameter) const =0 |
The function operator that will be overridden. More... | |
|
inline |
Constructor.
object | Reference to the object |
p_function | Pointer to the member function |
|
inlinevirtual |
The function operator that calls the destination function.
data | The data to pass to the function. |
Implements etl::ifunction< TParameter >.
class etl::function< TObject, void > |
A derived function template that takes a parameter type.
TObject | The object type that contains the member function. |
Public Member Functions | |
function (TObject &object_, void(TObject::*p_function_)(void)) | |
virtual void | operator() () const ETL_OVERRIDE |
The function operator that calls the destination function. More... | |
virtual void | operator() () const =0 |
The function operator that will be overridden. More... | |
Additional Inherited Members | |
![]() | |
typedef void | parameter_type |
The type of parameter sent to the function. | |
|
inline |
Constructor.
object | Reference to the object |
p_function | Pointer to the member function |
|
inlinevirtual |
The function operator that calls the destination function.
Implements etl::ifunction< void >.
class etl::function< void, TParameter > |
Specialisation for static or global functions that takes a parameter.
Public Member Functions | |
function (void(*p_function_)(TParameter)) | |
virtual void | operator() (TParameter data) const ETL_OVERRIDE |
virtual void | operator() (TParameter) const =0 |
The function operator that will be overridden. More... | |
Additional Inherited Members | |
![]() | |
typedef TParameter | parameter_type |
The type of parameter sent to the function. | |
|
inlineexplicit |
Constructor.
p_function | Pointer to the function |
|
inlinevirtual |
The function operator that calls the destination function.
data | The data to pass to the function. |
Implements etl::ifunction< TParameter >.
class etl::function< void, void > |
Specialisation static functions taking void parameter.
Public Member Functions | |
function (void(*p_function_)(void)) | |
virtual void | operator() () const ETL_OVERRIDE |
The function operator that calls the destination function. More... | |
virtual void | operator() () const =0 |
The function operator that will be overridden. More... | |
Additional Inherited Members | |
![]() | |
typedef void | parameter_type |
The type of parameter sent to the function. | |
|
inlineexplicit |
Constructor.
p_function | Pointer to the function. |
|
inlinevirtual |
The function operator that calls the destination function.
Implements etl::ifunction< void >.
class etl::function_mp |
A derived function template that takes an object type and parameter type.
TObject | The object type that contains the member function. |
TParameter | The parameter type accepted by the member function. |
Public Types | |
typedef TObject | object_type |
The type of object. | |
typedef TParameter | parameter_type |
The type of parameter sent to the function. | |
![]() | |
typedef TParameter | parameter_type |
The type of parameter sent to the function. | |
Public Member Functions | |
function_mp (TObject &object_) | |
virtual void | operator() (TParameter data) const ETL_OVERRIDE |
virtual void | operator() (TParameter) const =0 |
The function operator that will be overridden. More... | |
|
inlineexplicit |
Constructor.
object | Reference to the object |
|
inlinevirtual |
The function operator that calls the destination function.
data | The data to pass to the function. |
Implements etl::ifunction< TParameter >.
class etl::function_mv |
A derived function template that takes an object type and parameter type.
TObject | The object type that contains the member function. |
TParameter | The parameter type accepted by the member function. |
Public Types | |
typedef TObject | object_type |
The type of object. | |
typedef void | parameter_type |
The type of parameter sent to the function. | |
![]() | |
typedef void | parameter_type |
The type of parameter sent to the function. | |
Public Member Functions | |
function_mv (TObject &object_) | |
virtual void | operator() () const ETL_OVERRIDE |
virtual void | operator() () const =0 |
The function operator that will be overridden. More... | |
|
inlineexplicit |
Constructor.
object | Reference to the object |
|
inlinevirtual |
The function operator that calls the destination function.
data | The data to pass to the function. |
Implements etl::ifunction< void >.
class etl::function_imp |
A derived function template that takes an object type and parameter type.
TObject | The object type that contains the member function. |
TParameter | The parameter type accepted by the member function. |
Public Types | |
typedef TObject | object_type |
The type of object. | |
typedef TParameter | parameter_type |
The type of parameter sent to the function. | |
![]() | |
typedef TParameter | parameter_type |
The type of parameter sent to the function. | |
Public Member Functions | |
virtual void | operator() (TParameter data) const ETL_OVERRIDE |
virtual void | operator() (TParameter) const =0 |
The function operator that will be overridden. More... | |
|
inlinevirtual |
The function operator that calls the destination function.
data | The data to pass to the function. |
Implements etl::ifunction< TParameter >.
class etl::function_imv |
A derived function template that takes an object type and parameter type.
TObject | The object type that contains the member function. |
TParameter | The parameter type accepted by the member function. |
Public Types | |
typedef TObject | object_type |
The type of object. | |
typedef void | parameter_type |
The type of parameter sent to the function. | |
![]() | |
typedef void | parameter_type |
The type of parameter sent to the function. | |
Public Member Functions | |
virtual void | operator() () const ETL_OVERRIDE |
virtual void | operator() () const =0 |
The function operator that will be overridden. More... | |
|
inlinevirtual |
The function operator that calls the destination function.
data | The data to pass to the function. |
Implements etl::ifunction< void >.
class etl::function_fp |
A derived function template that takes a parameter type.
TParameter | The parameter type accepted by the member function. |
Public Types | |
typedef TParameter | parameter_type |
The type of parameter sent to the function. | |
![]() | |
typedef TParameter | parameter_type |
The type of parameter sent to the function. | |
Public Member Functions | |
function_fp () | |
virtual void | operator() (TParameter data) const ETL_OVERRIDE |
virtual void | operator() (TParameter) const =0 |
The function operator that will be overridden. More... | |
|
inline |
Constructor.
object | Reference to the object |
p_function | Pointer to the member function |
|
inlinevirtual |
The function operator that calls the destination function.
data | The data to pass to the function. |
Implements etl::ifunction< TParameter >.
class etl::function_fv |
A derived function template that takes a parameter type.
TParameter | The parameter type accepted by the member function. |
Public Types | |
typedef void | parameter_type |
The type of parameter sent to the function. | |
![]() | |
typedef void | parameter_type |
The type of parameter sent to the function. | |
Public Member Functions | |
function_fv () | |
virtual void | operator() () const ETL_OVERRIDE |
virtual void | operator() () const =0 |
The function operator that will be overridden. More... | |
|
inline |
Constructor.
object | Reference to the object |
p_function | Pointer to the member function |
|
inlinevirtual |
The function operator that calls the destination function.
data | The data to pass to the function. |
Implements etl::ifunction< void >.