Logo ROOT  
Reference Guide
ROOT::Experimental::TFuture< T > Class Template Reference

template<typename T>
class ROOT::Experimental::TFuture< T >

A TFuture class. It can wrap an std::future.

Definition at line 83 of file TFuture.hxx.

Public Member Functions

 TFuture (std::future< T > &&fut)
 
get ()
 

Private Member Functions

 TFuture (std::future< T > &&fut, std::unique_ptr< TTaskGroup > &&tg)
 

Friends

template<class Function , class... Args>
TFuture< typename std::result_of< typename std::decay< Function >::type(typename std::decay< Args >::type...)>::typeAsync (Function &&f, Args &&... args)
 Runs a function asynchronously potentially in a new thread and returns a ROOT TFuture that will hold the result. More...
 

#include <ROOT/TFuture.hxx>

Constructor & Destructor Documentation

◆ TFuture() [1/2]

template<typename T >
ROOT::Experimental::TFuture< T >::TFuture ( std::future< T > &&  fut,
std::unique_ptr< TTaskGroup > &&  tg 
)
inlineprivate

Definition at line 90 of file TFuture.hxx.

◆ TFuture() [2/2]

template<typename T >
ROOT::Experimental::TFuture< T >::TFuture ( std::future< T > &&  fut)
inline

Definition at line 94 of file TFuture.hxx.

Member Function Documentation

◆ get()

template<typename T >
T ROOT::Experimental::TFuture< T >::get ( )
inline

Definition at line 96 of file TFuture.hxx.

Friends And Related Function Documentation

◆ Async

template<typename T >
template<class Function , class... Args>
TFuture< typename std::result_of<typename std::decay<Function>::type(typename std::decay<Args>::type...)>::type> Async ( Function &&  f,
Args &&...  args 
)
friend

Runs a function asynchronously potentially in a new thread and returns a ROOT TFuture that will hold the result.

Definition at line 152 of file TFuture.hxx.


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