libkazv
Kazv::SingleTypePromiseInterface< T > Class Template Reference

#include <promise-interface.hpp>

Public Types

using DataT = T
 
using PromiseT = SingleTypePromise< DataT >
 
using ResolveT = std::function< void(DataT)>
 
using ResolveToPromiseT = std::function< void(PromiseT)>
 

Public Member Functions

template<class DeriveT >
 SingleTypePromiseInterface (DeriveT obj)
 
 SingleTypePromiseInterface (const SingleTypePromiseInterface &that)
 
 SingleTypePromiseInterface (SingleTypePromiseInterface &&that)
 
SingleTypePromiseInterfaceoperator= (const SingleTypePromiseInterface &that)
 
SingleTypePromiseInterfaceoperator= (SingleTypePromiseInterface &&that)
 
PromiseT create (std::function< void(ResolveT)> f) const
 
PromiseT createResolveToPromise (std::function< void(ResolveToPromiseT)> f) const
 
PromiseT createResolved (DataT v) const
 
template<class RangeT >
PromiseT all (RangeT promises) const
 

Member Typedef Documentation

◆ DataT

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

◆ PromiseT

◆ ResolveT

template<class T >
using Kazv::SingleTypePromiseInterface< T >::ResolveT = std::function<void(DataT)>

◆ ResolveToPromiseT

template<class T >
using Kazv::SingleTypePromiseInterface< T >::ResolveToPromiseT = std::function<void(PromiseT)>

Constructor & Destructor Documentation

◆ SingleTypePromiseInterface() [1/3]

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

◆ SingleTypePromiseInterface() [2/3]

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

◆ SingleTypePromiseInterface() [3/3]

Member Function Documentation

◆ all()

template<class T >
template<class RangeT >
PromiseT Kazv::SingleTypePromiseInterface< T >::all ( RangeT  promises) const
inline

◆ create()

template<class T >
PromiseT Kazv::SingleTypePromiseInterface< T >::create ( std::function< void(ResolveT)>  f) const
inline

◆ createResolved()

template<class T >
PromiseT Kazv::SingleTypePromiseInterface< T >::createResolved ( DataT  v) const
inline

◆ createResolveToPromise()

template<class T >
PromiseT Kazv::SingleTypePromiseInterface< T >::createResolveToPromise ( std::function< void(ResolveToPromiseT)>  f) const
inline

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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