ADTF
function_ptr.h File Reference

Copyright © Audi Electronics Venture GmbH. More...

Go to the source code of this file.

Classes

class  ifunction< ResultType(Arguments...)>
 Interface for functions that can be passed via IObject interfaces. More...
 
class  function_wrapper< ResultType(Arguments...)>
 Implements iucom_function for the given signature. More...
 

Namespaces

 adtf
 Namespace for entire ADTF SDK.
 
 adtf::ucom
 Namespace for the ADTF uCOM3 SDK.
 
 adtf::ucom::nitro
 Namespace for all functionality provided since v3.13.
 

Macros

#define ADTF_UCOM_PROVIDES_IFUNCTION   1
 

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...
 

Detailed Description

Copyright © Audi Electronics Venture GmbH.

All rights reserved

Definition in file function_ptr.h.