NCBI C++ ToolKit
Public Member Functions | List of all members
job_future< _Rty > Class Template Reference

Search Toolkit Book for job_future

#include <gui/utils/job_future.hpp>

+ Inheritance diagram for job_future< _Rty >:
+ Collaboration diagram for job_future< _Rty >:

Public Member Functions

 job_future ()
 
 job_future (IAppJob &job)
 
 job_future (job_future &&rhs)
 
job_futureoperator= (job_future &&rhs)
 
_Rty & operator() ()
 
- Public Member Functions inherited from job_future_base
 job_future_base ()
 
 job_future_base (IAppJob &job)
 
 job_future_base (job_future_base const &)=delete
 
job_future_baseoperator= (job_future_base const &)=delete
 
 job_future_base (job_future_base &&rhs)
 
job_future_baseoperator= (job_future_base &&rhs)
 
virtual ~job_future_base ()
 
bool IsRunning () const
 
bool IsComplete () const
 
bool IsCanceled () const
 
void reset ()
 
void cancel ()
 
virtual void OnJobResult (CObject *result)
 
virtual void OnJobFailed (const IAppJobError *error)
 
virtual void OnJobCanceled ()
 
- Public Member Functions inherited from CJobFutureAdapter::IJobCallback
virtual ~IJobCallback ()
 

Additional Inherited Members

- Protected Types inherited from job_future_base
enum  EState { eRunning , eComplete , eUndefined }
 
- Protected Member Functions inherited from job_future_base
void handle_error ()
 
- Protected Attributes inherited from job_future_base
EState m_State
 
bool m_Canceled = false
 
CRef< CJobFutureAdapterm_JobAdapter
 
CRef< CObjectm_Result
 
CConstRef< CJobFutureErrorm_Error
 
- Static Protected Attributes inherited from job_future_base
static const char * m_BadJobResponse = "Improper response from job"
 job_future_base More...
 

Detailed Description

template<class _Rty>
class job_future< _Rty >

Definition at line 243 of file job_future.hpp.

Constructor & Destructor Documentation

◆ job_future() [1/3]

template<class _Rty >
job_future< _Rty >::job_future ( )
inline

Definition at line 246 of file job_future.hpp.

◆ job_future() [2/3]

template<class _Rty >
job_future< _Rty >::job_future ( IAppJob job)
inline

Definition at line 247 of file job_future.hpp.

◆ job_future() [3/3]

template<class _Rty >
job_future< _Rty >::job_future ( job_future< _Rty > &&  rhs)
inline

Definition at line 249 of file job_future.hpp.

Member Function Documentation

◆ operator()()

template<class _Rty >
_Rty & job_future< _Rty >::operator() ( void  )

Definition at line 282 of file job_future.hpp.

References result.

◆ operator=()

template<class _Rty >
job_future& job_future< _Rty >::operator= ( job_future< _Rty > &&  rhs)
inline

Definition at line 251 of file job_future.hpp.


The documentation for this class was generated from the following file:
Modified on Fri Sep 20 14:57:26 2024 by modify_doxy.py rev. 669887