|
MADNESS 0.10.1
|
Specialization of Future<void> for internal convenience. This does nothing useful!
More...
#include <future.h>

Public Types | |
| typedef RemoteReference< FutureImpl< void > > | remote_refT |
Public Member Functions | |
| Future () | |
| Future (const archive::BufferInputArchive &input_arch) | |
| Construct from an input archive. | |
| Future (const RemoteReference< FutureImpl< void > > &remote_ref) | |
| ~Future () | |
| Destructor. | |
| void & | get (bool dowork=true) & |
| Gets the value, waiting if necessary. | |
| bool | is_default_initialized () const |
| Check if the future is default initialized. | |
| bool | is_local () const |
| Checks the future remoteness trait. | |
| bool | is_remote () const |
| Checks the future remoteness trait. | |
| operator const void & () const & | |
| Same as get() const&. | |
| operator void () && | |
An rvalue analog of get(). | |
| operator void & () & | |
Same as get()&. | |
| Future< void > & | operator= (const Future< void > &other) |
| Assignment operator. | |
| void | register_callback (CallbackInterface *callback) |
| Registers an object to be called when future is assigned. | |
Static Public Member Functions | |
| static const Future< void > | default_initializer () |
| See "Gotchas" on Futures about why this exists and how to use it. | |
| static bool | probe () |
| Check if this future has been assigned. | |
| static remote_refT | remote_ref (World &world) |
| static void | set () |
| Set the future. | |
| static void | set (const Future< void > &f) |
Set the future from another void future. | |
Static Public Attributes | |
| static const Future< void > | value |
Private Attributes | |
| char | buffer [sizeof(void)] |
Buffer to hold a single T object. | |
| atomic_shared_ptr< FutureImpl< void > > | f |
| Pointer to the implementation object. | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Future< void > &f) |
Human readable printing of a Future to a stream. | |
Specialization of Future<void> for internal convenience. This does nothing useful!
| typedef RemoteReference< FutureImpl<void> > madness::Future< void >::remote_refT |
|
inline |
Referenced by operator=(), and set().
|
inline |
| [in] | remote_ref | Description needed. |
References remote_ref().
|
inline |
Construct from an input archive.
| [in] | input_arch | The input archive. |
|
inline |
Destructor.
|
inlinestatic |
|
inline |
Gets the value, waiting if necessary.
| dowork | If true (default) and the future is not ready this thread will execute other tasks while waiting |
|
inline |
Check if the future is default initialized.
default_initializer(); false otherwise.
|
inline |
Checks the future remoteness trait.
|
inline |
Checks the future remoteness trait.
|
inline |
Same as get() const&.
|
inline |
An rvalue analog of get().
|
inline |
Same as get()&.
|
inline |
|
inlinestatic |
Check if this future has been assigned.
|
inline |
Registers an object to be called when future is assigned.
Callbacks are invoked in the order registered. If the future is already assigned, the callback is immediately invoked.
| [in] | callback | The callback to be invoked. |
|
inlinestatic |
|
inlinestatic |
Set the future.
In this specialization, do nothing.
|
inlinestatic |
|
friend |
Human readable printing of a Future to a stream.
Stream output operator for a future.
| T | The type of future. |
| [in,out] | out | The output stream. |
| [in] | f | The future. |
| T | Description needed. |
| [in,out] | The | output stream. |
| [in] | f | The future to be output. |
|
private |
Buffer to hold a single T object.
|
private |
Pointer to the implementation object.
Referenced by set().
|
static |
Referenced by madness::WorldTaskQueue::add(), madness::WorldTaskQueue::add(), madness::WorldTaskQueue::add(), madness::WorldTaskQueue::add(), madness::WorldTaskQueue::add(), madness::WorldTaskQueue::add(), madness::WorldTaskQueue::add(), madness::WorldTaskQueue::add(), madness::WorldTaskQueue::add(), madness::WorldObject< DerivativeBase< T, NDIM > >::send(), madness::WorldObject< DerivativeBase< T, NDIM > >::send(), madness::WorldObject< DerivativeBase< T, NDIM > >::send(), madness::WorldObject< DerivativeBase< T, NDIM > >::send(), madness::WorldObject< DerivativeBase< T, NDIM > >::send(), madness::WorldObject< DerivativeBase< T, NDIM > >::send(), madness::WorldObject< DerivativeBase< T, NDIM > >::send(), madness::WorldObject< DerivativeBase< T, NDIM > >::send(), madness::WorldObject< DerivativeBase< T, NDIM > >::send(), madness::WorldObject< DerivativeBase< T, NDIM > >::task(), madness::WorldObject< DerivativeBase< T, NDIM > >::task(), madness::WorldObject< DerivativeBase< T, NDIM > >::task(), madness::WorldObject< DerivativeBase< T, NDIM > >::task(), madness::WorldObject< DerivativeBase< T, NDIM > >::task(), madness::WorldObject< DerivativeBase< T, NDIM > >::task(), madness::WorldObject< DerivativeBase< T, NDIM > >::task(), madness::WorldObject< DerivativeBase< T, NDIM > >::task(), and madness::WorldObject< DerivativeBase< T, NDIM > >::task().