MADNESS
0.10.1
|
Specialization of Future
for a vector of Future
s.
More...
#include <future.h>
Public Member Functions | |
Future () | |
Future (const archive::BufferInputArchive &input_arch) | |
Future (const vectorT &v) | |
vectorT & | get () |
Access the vector of futures. More... | |
const vectorT & | get () const |
Access the const vector of futures. More... | |
operator const vectorT & () const | |
Access the const vector of futures. More... | |
operator vectorT & () | |
Access the vector of futures. More... | |
bool | probe () const |
Check if all of the futures in the vector have been assigned. More... | |
Public Member Functions inherited from madness::DependencyInterface | |
DependencyInterface (int ndep, const char *caller) | |
DependencyInterface (int ndep=0) | |
virtual | ~DependencyInterface () |
Destructor. More... | |
void | dec () |
Decrement the number of dependencies and invoke the callback if ndepend==0 . More... | |
void | dec_debug (const char *caller) |
void | inc () |
Increment the number of dependencies. More... | |
void | inc_debug (const char *caller) |
Same as inc(), but keeps track of caller ; calling dec_debug() will signal error if no matching inc_debug() had been invoked More... | |
int | ndep () const |
Returns the number of unsatisfied dependencies. More... | |
void | notify () |
Invoked by callbacks to notify of dependencies being satisfied. More... | |
void | notify_debug (const char *caller) |
Overload of CallbackInterface::notify_debug(), updates dec() More... | |
bool | probe () const |
Returns true if ndepend == 0 (no unsatisfied dependencies). More... | |
void | register_callback (CallbackInterface *callback) |
Registers a callback that will be executed when ndepend==0 ; immediately invoked if ndepend==0 . More... | |
void | register_final_callback (CallbackInterface *callback) |
Registers the final callback to be executed when ndepend==0 ; immediately invoked if ndepend==0 . More... | |
Public Member Functions inherited from madness::CallbackInterface | |
virtual | ~CallbackInterface () |
Private Types | |
typedef std::vector< Future< T > > | vectorT |
Alias for a vector of futures. More... | |
Private Attributes | |
vectorT | v |
The vector of futures. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from madness::CallbackInterface | |
virtual void | notify_debug_impl (const char *caller) |
Private Member Functions inherited from NO_DEFAULTS | |
NO_DEFAULTS () | |
NO_DEFAULTS (const NO_DEFAULTS &)=delete | |
NO_DEFAULTS (NO_DEFAULTS &&)=delete | |
NO_DEFAULTS & | operator= (const NO_DEFAULTS &)=delete |
NO_DEFAULTS & | operator= (NO_DEFAULTS &&)=delete |
Specialization of Future
for a vector of Future
s.
Enables passing a vector of futures into a task and having the dependencies correctly tracked. Does not directly support most operations that other futures do; these are the responsibility of the individual futures in the vector.
T | The type of future. |
|
private |
Alias for a vector of futures.
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Access the const vector of futures.
References madness::Future< T >::get().
|
inline |
|
inline |
Check if all of the futures in the vector have been assigned.
References madness::DependencyInterface::probe().
|
private |
The vector of futures.