LongPort OpenAPI C++ SDK
Public Member Functions | List of all members
longport::AsyncResult< Ctx, T > Struct Template Reference

#include <async_result.hpp>

Public Member Functions

 AsyncResult (Ctx ctx, Status status, const T *data)
 
 operator bool ()
 
const T * operator-> () const
 
const Statusstatus () const
 
const Ctx & context ()
 
bool is_ok () const
 Returns true if no errors occurs. More...
 
bool is_err () const
 Returns true if an errors occurs. More...
 

Constructor & Destructor Documentation

◆ AsyncResult()

template<typename Ctx , typename T >
longport::AsyncResult< Ctx, T >::AsyncResult ( Ctx  ctx,
Status  status,
const T *  data 
)
inline

Member Function Documentation

◆ context()

template<typename Ctx , typename T >
const Ctx& longport::AsyncResult< Ctx, T >::context ( )
inline

◆ is_err()

template<typename Ctx , typename T >
bool longport::AsyncResult< Ctx, T >::is_err ( ) const
inline

Returns true if an errors occurs.

◆ is_ok()

template<typename Ctx , typename T >
bool longport::AsyncResult< Ctx, T >::is_ok ( ) const
inline

Returns true if no errors occurs.

◆ operator bool()

template<typename Ctx , typename T >
longport::AsyncResult< Ctx, T >::operator bool ( )
inline

◆ operator->()

template<typename Ctx , typename T >
const T* longport::AsyncResult< Ctx, T >::operator-> ( ) const
inline

◆ status()

template<typename Ctx , typename T >
const Status& longport::AsyncResult< Ctx, T >::status ( ) const
inline

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