MIRA
|
Wrapper for boost::unique_future that is specialized for NMT status requests. More...
#include <can/CANOpenNMTMaster.h>
Public Member Functions | |
CANOpenNodeStatusFuture () | |
Default constructor. More... | |
CANOpenNodeStatusFuture (boost::unique_future< CANOpenNodeStatus > other, CANOpenNMTMaster *master, uint64 requestID) | |
Constructor. More... | |
CANOpenNodeStatusFuture (CANOpenNodeStatusFuture &&other) | |
Move constructor. More... | |
CANOpenNodeStatusFuture & | operator= (CANOpenNodeStatusFuture &&other) |
Move assignment operator. More... | |
~CANOpenNodeStatusFuture () | |
Destructor. More... | |
bool | isReady () const |
Checks to see if the result of the status request associated with this future is set. More... | |
bool | hasException () const |
Returns true if the status request associated with this future has finished with an exception rather than a return value. More... | |
bool | hasValue () const |
Returns true if the status request call associated with this future has finished with a return value value rather than an exception. More... | |
void | wait () const |
Waits and blocks the current thread until the result of the associated status request is ready. More... | |
template<typename Duration > | |
bool | timedWait (Duration const &relTime) const |
Waits and blocks the current thread until the result of the associated status request is ready, or the time duration specified by waitDuration has elapsed. More... | |
bool | timedWaitUntil (boost::system_time const &absTime) const |
Waits and blocks the current thread until the result of the associated status request is ready, or the time point specified by waitDuration has passed. More... | |
void | swap (CANOpenNodeStatusFuture &other) |
Swaps ownership of the asynchronous results associated with other and *this. More... | |
CANOpenNodeStatus | get () |
Obtains the return value of the status request. More... | |
Protected Attributes | |
CANOpenNMTMaster * | mNMTMaster |
uint64 | mRequestID |
boost::unique_future< CANOpenNodeStatus > | mFuture |
Wrapper for boost::unique_future that is specialized for NMT status requests.
|
inline |
Default constructor.
|
inline |
Constructor.
|
inline |
Move constructor.
Destructor.
|
inline |
Move assignment operator.
|
inline |
Checks to see if the result of the status request associated with this future is set.
|
inline |
Returns true if the status request associated with this future has finished with an exception rather than a return value.
|
inline |
Returns true if the status request call associated with this future has finished with a return value value rather than an exception.
|
inline |
Waits and blocks the current thread until the result of the associated status request is ready.
This is an interruption point.
|
inline |
Waits and blocks the current thread until the result of the associated status request is ready, or the time duration specified by waitDuration has elapsed.
This is an interruption point.
|
inline |
Waits and blocks the current thread until the result of the associated status request is ready, or the time point specified by waitDuration has passed.
This is an interruption point.
|
inline |
Swaps ownership of the asynchronous results associated with other and *this.
|
inline |
Obtains the return value of the status request.
|
protected |
|
protected |
|
protected |