MADNESS
version 0.9
|
Future for holding ReferenceWrapper
objects.
More...
#include <ref.h>
Public Member Functions | |
Future (const detail::ReferenceWrapper< T > &ref) | |
Constructor. More... | |
bool | probe () const |
Probe set state of the future. More... | |
void | register_callback (CallbackInterface *callback) |
Register a callback. More... | |
operator T & () const | |
Type convertion to the type being referenced. More... | |
Future for holding ReferenceWrapper
objects.
This is not a standard future. It is intended to hold a ReferenceWapper
in a task function. This avoids the coping data into the task.
T | The type held by the reference |
|
inline |
Constructor.
Construct a future with a reference wrapper object
|
inline |
Type convertion to the type being referenced.
References madness::detail::ReferenceWrapper< T >::get().
|
inline |
Probe set state of the future.
true
|
inline |
Register a callback.
Since this future will never be unset, the callback
notify function will always be immediately invocked and return.
callback | The callback object pointer |
References madness::CallbackInterface::notify().