libkazv
Kazv::SingleTypePromise< T > Class Template Reference

#include <promise-interface.hpp>

Inheritance diagram for Kazv::SingleTypePromise< T >:
Collaboration diagram for Kazv::SingleTypePromise< T >:

Public Types

using DataT = T
 

Public Member Functions

template<class DeriveT >
 SingleTypePromise (DeriveT obj)
 
 SingleTypePromise (const SingleTypePromise &that)
 
 SingleTypePromise (SingleTypePromise &&that)
 
SingleTypePromiseoperator= (const SingleTypePromise &that)
 
SingleTypePromiseoperator= (SingleTypePromise &&that)
 
template<class F >
SingleTypePromise then (F &&f)
 
bool ready () const
 
DataT get () const
 

Member Typedef Documentation

◆ DataT

template<class T >
using Kazv::SingleTypePromise< T >::DataT = T

Constructor & Destructor Documentation

◆ SingleTypePromise() [1/3]

template<class T >
template<class DeriveT >
Kazv::SingleTypePromise< T >::SingleTypePromise ( DeriveT  obj)
inline

◆ SingleTypePromise() [2/3]

template<class T >
Kazv::SingleTypePromise< T >::SingleTypePromise ( const SingleTypePromise< T > &  that)
inline

◆ SingleTypePromise() [3/3]

template<class T >
Kazv::SingleTypePromise< T >::SingleTypePromise ( SingleTypePromise< T > &&  that)
inline

Member Function Documentation

◆ get()

template<class T >
DataT Kazv::SingleTypePromise< T >::get ( ) const
inline

◆ operator=() [1/2]

template<class T >
SingleTypePromise& Kazv::SingleTypePromise< T >::operator= ( const SingleTypePromise< T > &  that)
inline

◆ operator=() [2/2]

template<class T >
SingleTypePromise& Kazv::SingleTypePromise< T >::operator= ( SingleTypePromise< T > &&  that)
inline

◆ ready()

template<class T >
bool Kazv::SingleTypePromise< T >::ready ( ) const
inline

◆ then()

template<class T >
template<class F >
SingleTypePromise Kazv::SingleTypePromise< T >::then ( F &&  f)
inline

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