Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
IDelegateCaller< ReturnType, ParamsList > Class Template Referenceabstract

IDelegateCaller class. More...

#include <Delegate.h>

Public Member Functions

virtual ReturnType invoke (ParamsList...)=0
 Invode the delegate. More...
 
__forceinline void increase ()
 Increase the quantity of delegate caller references by one. More...
 
__forceinline void decrease ()
 Decrease the quantity of delegate caller references by one. More...
 

Detailed Description

template<class ReturnType, typename... ParamsList>
class IDelegateCaller< ReturnType, ParamsList >

IDelegateCaller class.

Todo:
Provide more informative brief description of IDelegateCaller

Member Function Documentation

template<class ReturnType, typename... ParamsList>
__forceinline void IDelegateCaller< ReturnType, ParamsList >::decrease ( )
inline

Decrease the quantity of delegate caller references by one.

Note
If no references remain the delegate caller object is deleted
template<class ReturnType, typename... ParamsList>
__forceinline void IDelegateCaller< ReturnType, ParamsList >::increase ( )
inline

Increase the quantity of delegate caller references by one.

template<class ReturnType, typename... ParamsList>
virtual ReturnType IDelegateCaller< ReturnType, ParamsList >::invoke ( ParamsList...  )
pure virtual

Invode the delegate.

Parameters
ParamListDelegate parameters
Return values
ReturnTypeDelegate return value

Implemented in FunctionCaller< MethodDeclaration, ReturnType, ParamsList >, and MethodCaller< ReturnType(ClassType::*)(ParamsList...)>.