MGIS
Loading...
Searching...
No Matches
mgis::ThreadedTaskResult< T > Struct Template Reference

a class standing for the result of a taks More...

#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/ThreadedTaskResult.hxx>

Inheritance diagram for mgis::ThreadedTaskResult< T >:
mgis::ThreadedTaskResultBase

Public Member Functions

 ThreadedTaskResult ()
 default constructor
 
template<typename... Args>
 ThreadedTaskResult (Args &&...)
 constructor of T
 
 ThreadedTaskResult (const T &)
 constructor of T
 
 ThreadedTaskResult (ThreadedTaskResult &&)
 move constructor
 
 ThreadedTaskResult (const ThreadedTaskResult &)
 copy constructor
 
ThreadedTaskResultoperator= (const ThreadedTaskResult &)
 assignement
 
ThreadedTaskResultoperator= (ThreadedTaskResult &&)
 move assignement
 
ThreadedTaskResultoperator= (const T &)
 assignement
 
ThreadedTaskResultoperator= (T &&)
 move assignement
 
void setException (const std::exception_ptr &)
 set current exception
 
void rethrow ()
 throw the catched exception
 
 operator bool () const
 conversion to bool
 
T & operator* ()
 conversion to underlying type
 
const T & operator* () const
 conversion to underlying type
 
T * operator-> ()
 conversion to underlying type
 
const T * operator-> () const
 conversion to underlying type
 
 ~ThreadedTaskResult ()
 destructor
 
template<typename... Args>
 ThreadedTaskResult (Args &&... args)
 

Additional Inherited Members

- Static Protected Member Functions inherited from mgis::ThreadedTaskResultBase
static void throwBadCastException ()
 thr
 
static void throwNullException ()
 thr
 

Detailed Description

template<typename T>
struct mgis::ThreadedTaskResult< T >

a class standing for the result of a taks

Its interface is loosely base on the interface of std::optional (not available in C++11), but it also stores an std::exception_ptr if .

Constructor & Destructor Documentation

◆ ThreadedTaskResult()

template<typename T >
template<typename... Args>
mgis::ThreadedTaskResult< T >::ThreadedTaskResult ( Args &&  ...)
inline

constructor of T

Parameters
[in]argsarguments to T constructor

The documentation for this struct was generated from the following files: