Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 ()
 
- Public Member Functions inherited from ROOT::Detail::TFutureImpl< T >
 TFutureImpl (const TFutureImpl< T > &other)=delete
 
TFutureImpl< T > & operator= (TFutureImpl< T > &other)=delete
 
bool valid () const
 
void wait ()
 

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.
 

Additional Inherited Members

- Protected Types inherited from ROOT::Detail::TFutureImpl< T >
using TTaskGroup = Experimental::TTaskGroup
 
- Protected Member Functions inherited from ROOT::Detail::TFutureImpl< T >
 TFutureImpl ()
 
 TFutureImpl (std::future< T > &&fut)
 
 TFutureImpl (std::future< T > &&fut, std::unique_ptr< TTaskGroup > &&tg)
 
 TFutureImpl (TFutureImpl< T > &&other)
 
TFutureImploperator= (std::future< T > &&other)
 
TFutureImpl< T > & operator= (TFutureImpl< T > &&other)=default
 
- Protected Attributes inherited from ROOT::Detail::TFutureImpl< T >
std::future< T > fStdFut
 
std::unique_ptr< TTaskGroupfTg {nullptr}
 

#include <ROOT/TFuture.hxx>

Inheritance diagram for ROOT::Experimental::TFuture< T >:
[legend]

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

  • core/imt/inc/ROOT/TFuture.hxx