libqi-api  release-2.5.3-2016-11-18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
qi::detail::WrapInStrand< F > Struct Template Reference

#include <strand.hpp>

Public Member Functions

 WrapInStrand (F f, boost::weak_ptr< StrandPrivate > strand, boost::function< void()> onFail)
 
template<typename... Args>
auto operator() (Args &&...args) const -> decltype(callInStrand(_func, _onFail, _strand, std::forward< Args >(args)...))
 
template<typename... Args>
auto operator() (Args &&...args) -> decltype(callInStrand(_func, _onFail, _strand, std::forward< Args >(args)...))
 

Public Attributes

_func
 
boost::weak_ptr< StrandPrivate_strand
 
boost::function< void()> _onFail
 

Static Public Attributes

static const bool is_async = true
 

Detailed Description

template<typename F>
struct qi::detail::WrapInStrand< F >

Definition at line 33 of file strand.hpp.

Constructor & Destructor Documentation

template<typename F >
qi::detail::WrapInStrand< F >::WrapInStrand ( f,
boost::weak_ptr< StrandPrivate strand,
boost::function< void()>  onFail 
)
inline

Definition at line 234 of file strand.hpp.

Member Function Documentation

template<typename F >
template<typename... Args>
auto qi::detail::WrapInStrand< F >::operator() ( Args &&...  args) const -> decltype(callInStrand(_func, _onFail, _strand, std::forward<Args>(args)...))
inline

Definition at line 242 of file strand.hpp.

template<typename F >
template<typename... Args>
auto qi::detail::WrapInStrand< F >::operator() ( Args &&...  args) -> decltype(callInStrand(_func, _onFail, _strand, std::forward<Args>(args)...))
inline

Definition at line 249 of file strand.hpp.

Member Data Documentation

template<typename F >
F qi::detail::WrapInStrand< F >::_func

Definition at line 230 of file strand.hpp.

template<typename F >
boost::function<void()> qi::detail::WrapInStrand< F >::_onFail

Definition at line 232 of file strand.hpp.

template<typename F >
boost::weak_ptr<StrandPrivate> qi::detail::WrapInStrand< F >::_strand

Definition at line 231 of file strand.hpp.

template<typename F >
const bool qi::detail::WrapInStrand< F >::is_async = true
static

Definition at line 228 of file strand.hpp.


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