OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
future.hpp File Reference
Include dependency graph for future.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  openpit::asyncengine::Error
 Async dispatch failure carried by a future or lifecycle API. More...
 
class  openpit::asyncengine::Future< T >
 Consumer side of an async operation returning one value. More...
 
class  openpit::asyncengine::PairFuture< A, B >
 Consumer side of an async operation returning two values. More...
 
class  openpit::asyncengine::PairPromise< A, B >
 Producer side for PairFuture<A, B>. More...
 
class  openpit::asyncengine::Promise< T >
 Producer side used by the dispatcher to resolve a Future<T>. More...
 
class  openpit::asyncengine::Result< T >
 Resolved payload of a future: either a value or an async error. More...
 

Namespaces

 openpit
 
 openpit::asyncengine
 

Typedefs

template<typename T >
using openpit::asyncengine::Payload = std::conditional_t< std::is_copy_constructible_v< T >, Result< T >, std::shared_ptr< Result< T > >>
 

Enumerations

enum class  openpit::asyncengine::ErrorCode : std::uint8_t {
  openpit::asyncengine::Stopped , openpit::asyncengine::QueueLimit , openpit::asyncengine::MissingAccountId , openpit::asyncengine::SubmitCancelled ,
  openpit::asyncengine::TaskFailed
}