VSM C++ SDK
Vehicle Specific Modules SDK
ugcs::vsm::Callback_base< Result >::Ptr< Callback > Class Template Reference

Pointer class type. More...

#include <callback.h>

Inheritance diagram for ugcs::vsm::Callback_base< Result >::Ptr< Callback >:

Public Types

typedef Callback Callback_type
 Type of target callback. More...
 

Public Member Functions

template<typename... Args>
 Ptr (Args &&...args)
 Constructor accepts the same arguments as std::shared_ptr. More...
 
Result_t operator() ()
 Call the associated callback. More...
 

Detailed Description

template<typename Result>
template<class Callback = Callback_base>
class ugcs::vsm::Callback_base< Result >::Ptr< Callback >

Pointer class type.

It is callable for convenient callback invocation.

Member Typedef Documentation

template<typename Result>
template<class Callback = Callback_base>
typedef Callback ugcs::vsm::Callback_base< Result >::Ptr< Callback >::Callback_type

Type of target callback.

Constructor & Destructor Documentation

template<typename Result>
template<class Callback = Callback_base>
template<typename... Args>
ugcs::vsm::Callback_base< Result >::Ptr< Callback >::Ptr ( Args &&...  args)
inline

Constructor accepts the same arguments as std::shared_ptr.

Member Function Documentation

template<typename Result>
template<class Callback = Callback_base>
Result_t ugcs::vsm::Callback_base< Result >::Ptr< Callback >::operator() ( )
inline

Call the associated callback.

Exceptions
Nullptr_exceptionif the pointer is null.

The documentation for this class was generated from the following file: