ADTF
|
Namespace for all functionality provided since v3.13. More...
Classes | |
class | ifunction |
Interface for functions that can be passed via IObject interfaces. More... | |
class | ifunction< ResultType(Arguments...)> |
Interface for functions that can be passed via IObject interfaces. More... | |
class | function_wrapper |
Implements iucom_function for the given signature. More... | |
class | function_wrapper< ResultType(Arguments...)> |
Implements iucom_function for the given signature. More... | |
Typedefs | |
template<typename Signature > | |
using | ifunction_ptr = ant::iobject_ptr< ifunction< Signature > > |
Interface for shared pointers to iucom_function. | |
Functions | |
template<typename Callable , typename Signature = detail::signature_t<Callable>> | |
function_wrapper< Signature > | make_function (Callable &&fnCallback) |
creates a ucom_function object for the given callable. More... | |
template<typename Callable , typename Signature = detail::signature_t<Callable>> | |
ant::object_ptr< ifunction< Signature > > | make_function_ptr (Callable &&fnCallback) |
creates an object_ptr shared pointer to an ucom_function pointing to the given callable. More... | |
template<typename Signature > | |
std::function< Signature > | to_std_function (const ifunction< Signature > &fnFunction) |
Helper conversion to a std::function object. More... | |
template<typename Signature > | |
std::function< Signature > | to_std_function (const ifunction_ptr< Signature > &pFunction) |
Helper conversion to a std::function object. More... | |
Namespace for all functionality provided since v3.13.
|
inline |
creates a ucom_function object for the given callable.
Callable | The callable type that should be exposed via the function object. |
fnCallback | The callable that should be exposed via the function object. |
Definition at line 159 of file function_ptr.h.
Referenced by adtf::streaming::riddler::has_trigger_parent().
|
inline |
creates an object_ptr shared pointer to an ucom_function pointing to the given callable.
Callable | The callable type that should be exposed via the shared pointer. |
fnCallback | The callable that should be exposed via the shared pointer. |
Definition at line 171 of file function_ptr.h.
|
inline |
Helper conversion to a std::function object.
Use this to forward an ifunction to STL alrorithms etc.
[in] | fnFunction | the function object. |
Definition at line 182 of file function_ptr.h.
|
inline |
Helper conversion to a std::function object.
Use this to forward an ifunction_ptr to STL alrorithms etc.
[in] | pFunction | the function object. |
Definition at line 193 of file function_ptr.h.