|
libqi-api
2.0.6.8
|
#include <future.hpp>
Public Types | |
| typedef Future< T >::ValueType | ValueType |
| typedef Future< T >::ValueTypeCast | ValueTypeCast |
| typedef Future< T >::Connection | Connection |
Public Member Functions | |
| FutureSync () | |
| FutureSync (const Future< T > &b) | |
| FutureSync (const FutureSync< T > &b) | |
| FutureSync (const ValueType &v) | |
| FutureSync< T > & | operator= (const FutureSync< T > &b) |
| FutureSync< T > & | operator= (const Future< T > &b) |
| ~FutureSync () | |
| operator Future< T > () | |
| bool | operator< (const FutureSync< T > &b) const |
| const ValueType & | value (int msecs=FutureTimeout_Infinite) const |
| operator const typename Future< T >::ValueTypeCast & () const | |
| FutureState | wait (int msecs=FutureTimeout_Infinite) const |
| bool | isRunning () const |
| bool | isFinished () const |
| bool | isCanceled () const |
| bool | hasError (int msecs=FutureTimeout_Infinite) const |
| bool | hasValue (int msecs=FutureTimeout_Infinite) const |
| const std::string & | error (int msecs=FutureTimeout_Infinite) const |
| void | cancel () |
| bool | isCancelable () const |
| void | connect (const Connection &s) |
| void | _connect (const boost::function< void()> &s) |
| template<typename FUNCTYPE , typename ARG0 > | |
| void | connect (FUNCTYPE fun, ARG0 tracked,...) |
| Future< T > | async () |
Protected Attributes | |
| bool | _sync |
| Future< T > | _future |
Friends | |
| class | Future< T > |
this class allow throwing on error and being synchronous when the future is not handled by the client.
Definition at line 320 of file future.hpp.
| typedef Future<T>::Connection qi::FutureSync< T >::Connection |
Definition at line 325 of file future.hpp.
| typedef Future<T>::ValueType qi::FutureSync< T >::ValueType |
Definition at line 323 of file future.hpp.
| typedef Future<T>::ValueTypeCast qi::FutureSync< T >::ValueTypeCast |
Definition at line 324 of file future.hpp.
| qi::FutureSync< T >::FutureSync | ( | ) | [inline] |
Definition at line 327 of file future.hpp.
| qi::FutureSync< T >::FutureSync | ( | const Future< T > & | b | ) | [inline] |
Definition at line 329 of file future.hpp.
| qi::FutureSync< T >::FutureSync | ( | const FutureSync< T > & | b | ) | [inline] |
Definition at line 335 of file future.hpp.
| qi::FutureSync< T >::FutureSync | ( | const ValueType & | v | ) | [inline, explicit] |
Definition at line 342 of file future.hpp.
| qi::FutureSync< T >::~FutureSync | ( | ) | [inline] |
Definition at line 365 of file future.hpp.
| void qi::FutureSync< T >::_connect | ( | const boost::function< void()> & | s | ) | [inline] |
Definition at line 393 of file future.hpp.
| Future<T> qi::FutureSync< T >::async | ( | ) | [inline] |
Definition at line 416 of file future.hpp.
| void qi::FutureSync< T >::cancel | ( | ) | [inline] |
Definition at line 390 of file future.hpp.
| void qi::FutureSync< T >::connect | ( | const Connection & | s | ) | [inline] |
Definition at line 392 of file future.hpp.
| void qi::FutureSync< T >::connect | ( | FUNCTYPE | fun, |
| ARG0 | tracked, | ||
| ... | |||
| ) |
Connect a callback with binding and tracking support.
If the first argument is a weak_ptr or a pointer inheriting from qi::Trackable, the callback will not be called if tracked object was destroyed.
| const std::string& qi::FutureSync< T >::error | ( | int | msecs = FutureTimeout_Infinite | ) | const [inline] |
Definition at line 389 of file future.hpp.
| bool qi::FutureSync< T >::hasError | ( | int | msecs = FutureTimeout_Infinite | ) | const [inline] |
Definition at line 387 of file future.hpp.
| bool qi::FutureSync< T >::hasValue | ( | int | msecs = FutureTimeout_Infinite | ) | const [inline] |
Definition at line 388 of file future.hpp.
| bool qi::FutureSync< T >::isCancelable | ( | ) | const [inline] |
Definition at line 391 of file future.hpp.
| bool qi::FutureSync< T >::isCanceled | ( | ) | const [inline] |
Definition at line 386 of file future.hpp.
| bool qi::FutureSync< T >::isFinished | ( | ) | const [inline] |
Definition at line 385 of file future.hpp.
| bool qi::FutureSync< T >::isRunning | ( | ) | const [inline] |
Definition at line 384 of file future.hpp.
| qi::FutureSync< T >::operator const typename Future< T >::ValueTypeCast & | ( | ) | const [inline] |
Definition at line 382 of file future.hpp.
| qi::FutureSync< T >::operator Future< T > | ( | ) | [inline] |
Definition at line 371 of file future.hpp.
| bool qi::FutureSync< T >::operator< | ( | const FutureSync< T > & | b | ) | const [inline] |
Definition at line 376 of file future.hpp.
| FutureSync<T>& qi::FutureSync< T >::operator= | ( | const FutureSync< T > & | b | ) | [inline] |
Definition at line 350 of file future.hpp.
| FutureSync<T>& qi::FutureSync< T >::operator= | ( | const Future< T > & | b | ) | [inline] |
Definition at line 358 of file future.hpp.
| const ValueType& qi::FutureSync< T >::value | ( | int | msecs = FutureTimeout_Infinite | ) | const [inline] |
Definition at line 381 of file future.hpp.
| FutureState qi::FutureSync< T >::wait | ( | int | msecs = FutureTimeout_Infinite | ) | const [inline] |
Definition at line 383 of file future.hpp.
friend class Future< T > [friend] |
Definition at line 425 of file future.hpp.
Future<T> qi::FutureSync< T >::_future [protected] |
Definition at line 424 of file future.hpp.
bool qi::FutureSync< T >::_sync [mutable, protected] |
Definition at line 423 of file future.hpp.