ADTF  3.18.2
function_wrapper< ResultType(Arguments...)>

Implements iucom_function for the given signature. More...

Inheritance diagram for function_wrapper< ResultType(Arguments...)>:
[legend]

Public Member Functions

 function_wrapper (std::function< ResultType(Arguments...)> fnFunction)
 Constructor that initializes the object with the given function reference. More...
 
 function_wrapper (const function_wrapper &)=default
 
 function_wrapper (function_wrapper &&)=default
 
function_wrapperoperator= (const function_wrapper &)=default
 
function_wrapperoperator= (function_wrapper &&)=default
 
ResultType operator() (Arguments... args) const override
 
- Public Member Functions inherited from object< ifunction< ResultType(Arguments...)> >
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object. More...
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying. More...
 
void Destroy () const override
 Destruct and deallocate instantiations of type IObject. More...
 
- Public Member Functions inherited from IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 Marks the IObject to be castable with the ucom_cast() More...
 

Private Attributes

std::function< ResultType(Arguments...)> m_fnFunction
 

Additional Inherited Members

- Protected Member Functions inherited from IObject
 ~IObject ()=default
 Protected destructor --> Use implemented Destroy() instead of delete!
 

Detailed Description

template<typename ResultType, typename ... Arguments>
class adtf::ucom::nitro::function_wrapper< ResultType(Arguments...)>

Implements iucom_function for the given signature.

Definition at line 59 of file function_ptr.h.

Constructor & Destructor Documentation

◆ function_wrapper()

function_wrapper ( std::function< ResultType(Arguments...)>  fnFunction)
inline

Constructor that initializes the object with the given function reference.

Parameters
[in]fnFunctionThe function that should be exposed via iucom_function.

Definition at line 66 of file function_ptr.h.