OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::AsyncPromise Class Reference

Provides result of asynchronous operations. More...

#include <opencv2/core/detail/async_promise.hpp>

Collaboration diagram for cv::AsyncPromise:

Public Types

typedef struct AsyncArray::Impl Impl
 

Public Member Functions

 AsyncPromise () CV_NOEXCEPT
 
 AsyncPromise (const AsyncPromise &o) CV_NOEXCEPT
 
 ~AsyncPromise () CV_NOEXCEPT
 
void * _getImpl () const CV_NOEXCEPT
 
AsyncArray getArrayResult ()
 Returns associated AsyncArray. More...
 
AsyncPromiseoperator= (const AsyncPromise &o) CV_NOEXCEPT
 
void release () CV_NOEXCEPT
 
void setException (const cv::Exception &exception)
 Stores exception. More...
 
void setValue (InputArray value)
 Stores asynchronous result. More...
 

Protected Attributes

Implp
 

Friends

struct AsyncArray::Impl
 

Detailed Description

Provides result of asynchronous operations.

Member Typedef Documentation

◆ Impl

typedef struct AsyncArray::Impl cv::AsyncPromise::Impl

Constructor & Destructor Documentation

◆ ~AsyncPromise()

cv::AsyncPromise::~AsyncPromise ( )

◆ AsyncPromise() [1/2]

cv::AsyncPromise::AsyncPromise ( )

◆ AsyncPromise() [2/2]

cv::AsyncPromise::AsyncPromise ( const AsyncPromise o)
explicit

Member Function Documentation

◆ _getImpl()

void* cv::AsyncPromise::_getImpl ( ) const
inline

◆ getArrayResult()

AsyncArray cv::AsyncPromise::getArrayResult ( )

Returns associated AsyncArray.

Note
Can be called once

Referenced by cv::utils::testAsyncArray(), and cv::utils::testAsyncException().

Here is the caller graph for this function:

◆ operator=()

AsyncPromise& cv::AsyncPromise::operator= ( const AsyncPromise o)

◆ release()

void cv::AsyncPromise::release ( )

◆ setException()

void cv::AsyncPromise::setException ( const cv::Exception exception)

Stores exception.

Parameters
[in]exceptionexception to be raised in AsyncArray

Referenced by cv::utils::testAsyncException().

Here is the caller graph for this function:

◆ setValue()

void cv::AsyncPromise::setValue ( InputArray  value)

Stores asynchronous result.

Parameters
[in]valueresult

Referenced by cv::utils::testAsyncArray().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ AsyncArray::Impl

friend struct AsyncArray::Impl
friend

Member Data Documentation

◆ p

Impl* cv::AsyncPromise::p
protected

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