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

#include <function.h>

Public Types

typedef TObject object_type
 The type of object.
 
typedef TParameter parameter_type
 The type of parameter sent to the function.
 
- Public Types inherited from etl::ifunction< TParameter >
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)
 

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
TObjectThe object type that contains the member function.
TParameterThe parameter type accepted by the member function.

Constructor & Destructor Documentation

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

Constructor.

Parameters
objectReference to the object
p_functionPointer to the member function

Member Function Documentation

template<typename TObject, typename TParameter>
virtual void etl::function< TObject, 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: