OnixS C++ FIX Engine 4.14.0
Users' manual and API documentation
Loading...
Searching...
No Matches
PromiseBase Class Reference

#include <OnixS/FIXEngine/Threading/Future.h>

Public Member Functions

bool valid ()
ONIXS_FIXENGINE_API void setExceptionImpl ()

Protected Member Functions

ONIXS_FIXENGINE_API PromiseBase () noexcept
ONIXS_FIXENGINE_API PromiseBase (const PromiseBase &other) noexcept
ONIXS_FIXENGINE_API PromiseBase & operator= (const PromiseBase &other) noexcept
ONIXS_FIXENGINE_API PromiseBase (PromiseBase &&other) noexcept
ONIXS_FIXENGINE_API PromiseBase & operator= (PromiseBase &&other) noexcept
ONIXS_FIXENGINE_API ~PromiseBase () noexcept
ONIXS_FIXENGINE_API void swap (PromiseBase &other) noexcept
ONIXS_FIXENGINE_API void setValue (ValueBase *value)
ONIXS_FIXENGINE_API void setVoid ()
ONIXS_FIXENGINE_API SharedFuture< FutureValue > getFutureImpl () const
template<typename T>
SharedFuture< T > getTypedFuture () const

Detailed Description

Definition at line 307 of file Future.h.

Constructor & Destructor Documentation

◆ PromiseBase() [1/3]

ONIXS_FIXENGINE_API PromiseBase ( )
protectednoexcept

◆ PromiseBase() [2/3]

ONIXS_FIXENGINE_API PromiseBase ( const PromiseBase & other)
protectednoexcept

◆ PromiseBase() [3/3]

ONIXS_FIXENGINE_API PromiseBase ( PromiseBase && other)
protectednoexcept

◆ ~PromiseBase()

ONIXS_FIXENGINE_API ~PromiseBase ( )
protectednoexcept

Destroys a future object.

If this is the last reference to the asynchronous result associated with *this (if any), then destroy that asynchronous result.

Member Function Documentation

◆ getFutureImpl()

ONIXS_FIXENGINE_API SharedFuture< FutureValue > getFutureImpl ( ) const
protected

◆ getTypedFuture()

template<typename T>
SharedFuture< T > getTypedFuture ( ) const
inlineprotected

Definition at line 343 of file Future.h.

◆ operator=() [1/2]

ONIXS_FIXENGINE_API PromiseBase & operator= ( const PromiseBase & other)
protectednoexcept

◆ operator=() [2/2]

ONIXS_FIXENGINE_API PromiseBase & operator= ( PromiseBase && other)
protectednoexcept

◆ setExceptionImpl()

ONIXS_FIXENGINE_API void setExceptionImpl ( )

◆ setValue()

ONIXS_FIXENGINE_API void setValue ( ValueBase * value)
protected

◆ setVoid()

ONIXS_FIXENGINE_API void setVoid ( )
protected

◆ swap()

ONIXS_FIXENGINE_API void swap ( PromiseBase & other)
protectednoexcept

◆ valid()

bool valid ( )

Check if a future instance is associated with an asynchronous result.

Returns true if the *this has an associated asynchronous result, false otherwise.