Embedded Template Library  1.0
 All Classes Files Functions Variables Typedefs Friends Modules Pages
etl::function< void, TParameter > Class Template Reference

#include <function.h>

Public Member Functions

 function (void(*p_function)(TParameter))
 
virtual void operator() (TParameter data)
 

Additional Inherited Members

- Public Types inherited from etl::ifunction< TParameter >
typedef TParameter parameter_type
 The type of parameter sent to the function.
 

Detailed Description

template<typename TParameter>
class etl::function< void, TParameter >

Specialisation for static or global functions that take a parameter.

Constructor & Destructor Documentation

template<typename TParameter >
etl::function< void, TParameter >::function ( void(*)(TParameter)  p_function)
inline

Constructor.

Parameters
p_functionPointer to the function

Member Function Documentation

template<typename TParameter >
virtual void etl::function< void, TParameter >::operator() ( TParameter  data)
inlinevirtual

The function operator that calls the destination function.

Parameters
dataThe data to pass to the function.

Implements etl::ifunction< TParameter >.


The documentation for this class was generated from the following file: