ADTF
Loading...
Searching...
No Matches
adtf::ucom::nitro Namespace Reference

Namespace for all functionality of the ADTF UCOM SDK provided since v3.13. More...

Classes

class  function_wrapper
 
class  function_wrapper< ResultType(Arguments...)>
 
class  ifunction
 
class  ifunction< ResultType(Arguments...)>
 

Typedefs

template<typename Signature>
using ifunction_ptr = ant::iobject_ptr<ifunction<Signature>>
 

Functions

template<typename Callable, typename Signature = detail::signature_t<Callable>>
function_wrapper< Signature > make_function (Callable &&fnCallback)
 
template<typename Callable, typename Signature = detail::signature_t<Callable>>
ant::object_ptr< ifunction< Signature > > make_function_ptr (Callable &&fnCallback)
 
template<typename Signature>
std::function< Signature > to_std_function (const ifunction< Signature > &fnFunction)
 
template<typename Signature>
std::function< Signature > to_std_function (const ifunction_ptr< Signature > &pFunction)
 

Detailed Description

Namespace for all functionality of the ADTF UCOM SDK provided since v3.13.

Typedef Documentation

◆ ifunction_ptr

template<typename Signature>
using adtf::ucom::nitro::ifunction_ptr = ant::iobject_ptr<ifunction<Signature>>

Interface for shared pointers to iucom_function.

Function Documentation

◆ make_function()

template<typename Callable, typename Signature = detail::signature_t<Callable>>
function_wrapper< Signature > adtf::ucom::nitro::make_function ( Callable && fnCallback)
inline

creates a ucom_function object for the given callable.

Template Parameters
CallableThe callable type that should be exposed via the function object.
Parameters
fnCallbackThe callable that should be exposed via the function object.
Returns
a function object wrapping the given callable.

◆ make_function_ptr()

template<typename Callable, typename Signature = detail::signature_t<Callable>>
ant::object_ptr< ifunction< Signature > > adtf::ucom::nitro::make_function_ptr ( Callable && fnCallback)
inline

creates an object_ptr shared pointer to an ucom_function pointing to the given callable.

Template Parameters
CallableThe callable type that should be exposed via the shared pointer.
Parameters
fnCallbackThe callable that should be exposed via the shared pointer.
Returns
an object_ptr to an ucom_function pointing to the given callable.

◆ to_std_function() [1/2]

template<typename Signature>
std::function< Signature > adtf::ucom::nitro::to_std_function ( const ifunction< Signature > & fnFunction)
inline

Helper conversion to a std::function object. Use this to forward an ifunction to STL alrorithms etc.

Parameters
[in]fnFunctionthe function object.

◆ to_std_function() [2/2]

template<typename Signature>
std::function< Signature > adtf::ucom::nitro::to_std_function ( const ifunction_ptr< Signature > & pFunction)
inline

Helper conversion to a std::function object. Use this to forward an ifunction_ptr to STL alrorithms etc.

Parameters
[in]pFunctionthe function object.