DUNE PDELab (2.8)

Dune::Future< T > Class Template Reference

Type-erasure for future-like objects. A future-like object is a object satisfying the interface of FutureBase. More...

#include <dune/common/parallel/future.hh>

Public Member Functions

void wait ()
 wait until the future is ready More...
 
get ()
 Waits until the future is ready and returns the resulting value. More...
 
bool ready () const
 
bool valid () const
 Checks whether the future is valid. I.e. ‘get()’ was not called on that future and when it was not default-constructed and not moved from. More...
 

Detailed Description

template<class T>
class Dune::Future< T >

Type-erasure for future-like objects. A future-like object is a object satisfying the interface of FutureBase.

Member Function Documentation

◆ get()

template<class T >
T Dune::Future< T >::get ( )
inline

Waits until the future is ready and returns the resulting value.

Returns
The contained value
Exceptions
InvalidFutureException

◆ ready()

template<class T >
bool Dune::Future< T >::ready ( ) const
inline
Returns
true is the future is ready, otherwise false
Exceptions
InvalidFutureException

◆ valid()

template<class T >
bool Dune::Future< T >::valid ( ) const
inline

Checks whether the future is valid. I.e. ‘get()’ was not called on that future and when it was not default-constructed and not moved from.

Returns
true is the future is valid, otherwise false

◆ wait()

template<class T >
void Dune::Future< T >::wait ( )
inline

wait until the future is ready

Exceptions
InvalidFutureException

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)