Thrill  0.1
Future< ValueType > Class Template Reference

Detailed Description

template<typename ValueType = void>
class thrill::api::Future< ValueType >

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.

+ Collaboration diagram for Future< ValueType >:

#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...
 

Member Typedef Documentation

◆ ActionResultNodePtr

Definition at line 87 of file action_node.hpp.

Constructor & Destructor Documentation

◆ Future()

Future ( const ActionResultNodePtr node)
inlineexplicit

Definition at line 89 of file action_node.hpp.

Member Function Documentation

◆ get()

const ValueType& get ( )
inline

Return the value of the ActionFuture.

Definition at line 104 of file action_node.hpp.

References thrill::api::NEW.

◆ operator()()

const ValueType& operator() ( )
inline

Return the value of the ActionFuture.

Definition at line 112 of file action_node.hpp.

◆ valid()

bool valid ( ) const
inline

true if already executed/valid

Definition at line 99 of file action_node.hpp.

References thrill::api::EXECUTED.

◆ wait()

void wait ( )
inline

Evaluate the DIA data-flow graph for this ActionFuture.

Definition at line 93 of file action_node.hpp.

References thrill::api::NEW.

Member Data Documentation

◆ node_

ActionResultNodePtr node_
private

shared pointer to the action node, which may not be executed yet.

Definition at line 118 of file action_node.hpp.


The documentation for this class was generated from the following file: