OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
PromiseBase Class Reference

Public Member Functions

bool valid ()
ONIXS_FIXENGINE_API void setExceptionImpl ()

Protected Member Functions

ONIXS_FIXENGINE_API PromiseBase () ONIXS_FIXENGINE_NOTHROW
ONIXS_FIXENGINE_API PromiseBase (const PromiseBase &other) ONIXS_FIXENGINE_NOTHROW
ONIXS_FIXENGINE_API PromiseBaseoperator= (const PromiseBase &other) ONIXS_FIXENGINE_NOTHROW
ONIXS_FIXENGINE_API ~PromiseBase () ONIXS_FIXENGINE_NOTHROW
ONIXS_FIXENGINE_API void swap (PromiseBase &other) ONIXS_FIXENGINE_NOTHROW
ONIXS_FIXENGINE_API void setValue (ValueBase *value)
ONIXS_FIXENGINE_API void setVoid ()
ONIXS_FIXENGINE_API SharedFuture< FutureValuegetFutureImpl () const
template<typename T>
SharedFuture< T > getTypedFuture () const

Detailed Description

Definition at line 321 of file Future.h.

Constructor & Destructor Documentation

◆ PromiseBase() [1/2]

◆ PromiseBase() [2/2]

ONIXS_FIXENGINE_API PromiseBase ( const PromiseBase & other)
protected

◆ ~PromiseBase()

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 361 of file Future.h.

◆ operator=()

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

◆ 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)
protected

◆ 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.