- Aldebaran documentation |
- C++ Libraries |
- index

libqi-api 2.8.7.4

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
futureadapter.hpp
Go to the documentation of this file.
1 #pragma once
2 /*
3 ** Copyright (C) 2013 Aldebaran Robotics
4 ** See COPYING for the license
5 */
6
7 #ifndef QI_TYPE_DETAIL_FUTURE_ADAPTER_HPP_
8 #define QI_TYPE_DETAIL_FUTURE_ADAPTER_HPP_
9
10 #include <qi/type/detail/anyreference.hpp>
11 #include <qi/future.hpp>
12
13 namespace qi
14 {
15 namespace detail
16 {
17
18 template<typename T> void hold(T data) {}
19
20 template <typename T>
21 inline T extractFuture(const qi::Future<qi::AnyReference>& metaFut);
22
23 template <typename T>
24 inline void futureAdapter(const qi::Future<qi::AnyReference>& metaFut, qi::Promise<T> promise);
25
26 template <typename T>
27 inline void futureAdapterVal(const qi::Future<qi::AnyValue>& metaFut, qi::Promise<T> promise);
28
29 }
30 }
31
32 #endif
qi::detail::futureAdapter
void futureAdapter(const Future< FT > &f, Promise< PT > p, CONV converter)
Definition: future.hxx:475
qi::Future
Definition: executioncontext.hpp:20
qi::detail::extractFuture
T extractFuture(const qi::Future< qi::AnyReference > &metaFut)
Definition: futureadapter.hxx:189
anyreference.hpp
qi::detail::futureAdapterVal
void futureAdapterVal(const qi::Future< qi::AnyValue > &metaFut, qi::Promise< T > promise)
Definition: futureadapter.hxx:324
future.hpp
qi::detail::hold
void hold(T data)
Definition: futureadapter.hpp:18
qi::Promise
Definition: future_fwd.hpp:71