MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Member Functions | List of all members
encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType > Class Template Reference

#include <reusable_future.h>

Public Member Functions

 ReusablePromise () noexcept
 
 ReusablePromise (const ReusablePromise &)=delete
 
 ReusablePromise (ReusablePromise &&other) noexcept
 
 ~ReusablePromise ()=default
 
ReusablePromiseoperator= (const ReusablePromise &)=delete
 
ReusablePromiseoperator= (ReusablePromise &&other) noexcept
 
void set_value (const R &value)
 
void set_value (R &&value)
 
ReusableFuture< R, MutexType, ConditionVariableType > get_future ()
 
void swap (ReusablePromise &other) noexcept
 

Constructor & Destructor Documentation

◆ ReusablePromise() [1/3]

template<typename R , typename MutexType = std::mutex, typename ConditionVariableType = std::condition_variable>
encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >::ReusablePromise ( )
inlinenoexcept

◆ ReusablePromise() [2/3]

template<typename R , typename MutexType = std::mutex, typename ConditionVariableType = std::condition_variable>
encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >::ReusablePromise ( const ReusablePromise< R, MutexType, ConditionVariableType > &  )
delete

◆ ReusablePromise() [3/3]

template<typename R , typename MutexType = std::mutex, typename ConditionVariableType = std::condition_variable>
encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >::ReusablePromise ( ReusablePromise< R, MutexType, ConditionVariableType > &&  other)
inlinenoexcept

◆ ~ReusablePromise()

template<typename R , typename MutexType = std::mutex, typename ConditionVariableType = std::condition_variable>
encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >::~ReusablePromise ( )
default

Member Function Documentation

◆ get_future()

template<typename R , typename MutexType = std::mutex, typename ConditionVariableType = std::condition_variable>
ReusableFuture<R, MutexType, ConditionVariableType> encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >::get_future ( )
inline
Here is the caller graph for this function:

◆ operator=() [1/2]

template<typename R , typename MutexType = std::mutex, typename ConditionVariableType = std::condition_variable>
ReusablePromise& encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >::operator= ( const ReusablePromise< R, MutexType, ConditionVariableType > &  )
delete

◆ operator=() [2/2]

template<typename R , typename MutexType = std::mutex, typename ConditionVariableType = std::condition_variable>
ReusablePromise& encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >::operator= ( ReusablePromise< R, MutexType, ConditionVariableType > &&  other)
inlinenoexcept

◆ set_value() [1/2]

template<typename R , typename MutexType = std::mutex, typename ConditionVariableType = std::condition_variable>
void encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >::set_value ( const R &  value)
inline
Here is the caller graph for this function:

◆ set_value() [2/2]

template<typename R , typename MutexType = std::mutex, typename ConditionVariableType = std::condition_variable>
void encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >::set_value ( R &&  value)
inline

◆ swap()

template<typename R , typename MutexType = std::mutex, typename ConditionVariableType = std::condition_variable>
void encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >::swap ( ReusablePromise< R, MutexType, ConditionVariableType > &  other)
inlinenoexcept

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