i6engine  1.0
i6e::utils::Future< T > Class Template Reference

class for returning a result before it is ready More...

#include <D:/Projekte/i6engine/libs/i6engine-utils/include/i6engine/utils/Future.h>

Public Member Functions

 Future ()
 constructor More...
 
get () const
 returns the contained value if value wasn't set, this call blocks until it is set More...
 
void push (T value)
 sets value for this variable, notifies waiting get if existing More...
 

Detailed Description

template<typename T>
class i6e::utils::Future< T >

class for returning a result before it is ready

Definition at line 41 of file Future.h.

Constructor & Destructor Documentation

template<typename T >
i6e::utils::Future< T >::Future ( )
inline

constructor

Definition at line 46 of file Future.h.

Member Function Documentation

template<typename T >
T i6e::utils::Future< T >::get ( ) const
inline

returns the contained value if value wasn't set, this call blocks until it is set

Definition at line 53 of file Future.h.

template<typename T >
void i6e::utils::Future< T >::push ( value)
inline

sets value for this variable, notifies waiting get if existing

Definition at line 64 of file Future.h.


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