qpid::client::TypedResult< T > Class Template Reference
Returned by asynchronous commands that return a result.
More...
#include <qpid/client/TypedResult.h>
List of all members.
Public Member Functions |
| TypedResult (const Completion &c) |
T & | get () |
| Wait for the asynchronous command that returned this TypedResult to complete and return its result.
|
void | wait () |
| Wait for the asynchronous command that returned this Completion to complete.
|
bool | isComplete () |
bool | isValid () const |
bool | isNull () const |
| operator bool () const |
| Conversion to bool supports idiom if (handle) { handle->.
|
bool | operator! () const |
| Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }.
|
void | swap (Handle< CompletionImpl > &h) |
Protected Member Functions |
std::string | getResult () |
Protected Attributes |
Impl * | impl |
Detailed Description
template<class T>
class qpid::client::TypedResult< T >
Returned by asynchronous commands that return a result.
You can use get() to wait for completion and get the result value.
Definition at line 36 of file TypedResult.h.
Constructor & Destructor Documentation
Member Function Documentation
std::string qpid::client::Completion::getResult |
( |
|
) |
[protected, inherited] |
bool qpid::client::Completion::isComplete |
( |
|
) |
[inherited] |
- Returns:
- true if handle is null. It is an error to call any function on a null handle.
Definition at line 46 of file Handle.h.
- Returns:
- true if handle is valid, i.e. not null.
Definition at line 43 of file Handle.h.
Conversion to bool supports idiom if (handle) { handle->.
.. }
Definition at line 49 of file Handle.h.
Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }.
Definition at line 52 of file Handle.h.
void qpid::client::Completion::wait |
( |
|
) |
[inherited] |
Wait for the asynchronous command that returned this Completion to complete.
- Exceptions:
-
| If | the command returns an error. |
Member Data Documentation
The documentation for this class was generated from the following file: