Thrill
0.1
|
The return type class for all ActionFutures.
This is not a multi-threading Future, instead it is only a variable placeholder containing a pointer to the action node to retrieve the value once it is calculated.
Definition at line 83 of file action_node.hpp.
#include <action_node.hpp>
Public Types | |
using | ActionResultNodePtr = tlx::CountingPtr< ActionResultNode< ValueType > > |
Public Member Functions | |
Future (const ActionResultNodePtr &node) | |
const ValueType & | get () |
Return the value of the ActionFuture. More... | |
const ValueType & | operator() () |
Return the value of the ActionFuture. More... | |
bool | valid () const |
true if already executed/valid More... | |
void | wait () |
Evaluate the DIA data-flow graph for this ActionFuture. More... | |
Private Attributes | |
ActionResultNodePtr | node_ |
shared pointer to the action node, which may not be executed yet. More... | |
using ActionResultNodePtr = tlx::CountingPtr<ActionResultNode<ValueType> > |
Definition at line 87 of file action_node.hpp.
|
inlineexplicit |
Definition at line 89 of file action_node.hpp.
|
inline |
Return the value of the ActionFuture.
Definition at line 104 of file action_node.hpp.
References thrill::api::NEW.
|
inline |
Return the value of the ActionFuture.
Definition at line 112 of file action_node.hpp.
|
inline |
true if already executed/valid
Definition at line 99 of file action_node.hpp.
References thrill::api::EXECUTED.
|
inline |
Evaluate the DIA data-flow graph for this ActionFuture.
Definition at line 93 of file action_node.hpp.
References thrill::api::NEW.
|
private |
shared pointer to the action node, which may not be executed yet.
Definition at line 118 of file action_node.hpp.