EstervQrCode 1.1.1
Library for qr code manipulation
Public Member Functions | Protected Attributes | Friends | List of all members
cv::AsyncArray Class Reference

Returns result of asynchronous operations. More...

#include <async.hpp>

Public Member Functions

 ~AsyncArray () CV_NOEXCEPT
 
CV_WRAP AsyncArray () CV_NOEXCEPT
 
 AsyncArray (const AsyncArray &o) CV_NOEXCEPT
 
AsyncArrayoperator= (const AsyncArray &o) CV_NOEXCEPT
 
CV_WRAP void release () CV_NOEXCEPT
 
CV_WRAP void get (OutputArray dst) const
 
bool get (OutputArray dst, int64 timeoutNs) const
 
CV_WRAP bool get (OutputArray dst, double timeoutNs) const
 
bool wait_for (int64 timeoutNs) const
 
CV_WRAP bool wait_for (double timeoutNs) const
 
CV_WRAP bool valid () const CV_NOEXCEPT
 
 AsyncArray (AsyncArray &&o)
 
AsyncArrayoperator= (AsyncArray &&o) CV_NOEXCEPT
 
template<typename _Rep , typename _Period >
bool get (OutputArray dst, const std::chrono::duration< _Rep, _Period > &timeout)
 
template<typename _Rep , typename _Period >
bool wait_for (const std::chrono::duration< _Rep, _Period > &timeout)
 
void * _getImpl () const CV_NOEXCEPT
 

Protected Attributes

Implp
 

Friends

struct Impl
 

Detailed Description

Returns result of asynchronous operations.

Object has attached asynchronous state. Assignment operator doesn't clone asynchronous state (it is shared between all instances).

Result can be fetched via get() method only once.

Constructor & Destructor Documentation

◆ ~AsyncArray()

cv::AsyncArray::~AsyncArray ( )

◆ AsyncArray() [1/3]

CV_WRAP cv::AsyncArray::AsyncArray ( )

◆ AsyncArray() [2/3]

cv::AsyncArray::AsyncArray ( const AsyncArray o)

◆ AsyncArray() [3/3]

cv::AsyncArray::AsyncArray ( AsyncArray &&  o)
inline

Member Function Documentation

◆ _getImpl()

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

◆ get() [1/4]

CV_WRAP void cv::AsyncArray::get ( OutputArray  dst) const

Fetch the result.

Parameters
[out]dstdestination array

Waits for result until container has valid result. Throws exception if exception was stored as a result.

Throws exception on invalid container state.

Note
Result or stored exception can be fetched only once.

◆ get() [2/4]

template<typename _Rep , typename _Period >
bool cv::AsyncArray::get ( OutputArray  dst,
const std::chrono::duration< _Rep, _Period > &  timeout 
)
inline

◆ get() [3/4]

CV_WRAP bool cv::AsyncArray::get ( OutputArray  dst,
double  timeoutNs 
) const
inline

◆ get() [4/4]

bool cv::AsyncArray::get ( OutputArray  dst,
int64  timeoutNs 
) const

Retrieving the result with timeout

Parameters
[out]dstdestination array
[in]timeoutNstimeout in nanoseconds, -1 for infinite wait
Returns
true if result is ready, false if the timeout has expired
Note
Result or stored exception can be fetched only once.

◆ operator=() [1/2]

AsyncArray& cv::AsyncArray::operator= ( AsyncArray &&  o)
inline

◆ operator=() [2/2]

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

◆ release()

CV_WRAP void cv::AsyncArray::release ( )

◆ valid()

CV_WRAP bool cv::AsyncArray::valid ( ) const

◆ wait_for() [1/3]

template<typename _Rep , typename _Period >
bool cv::AsyncArray::wait_for ( const std::chrono::duration< _Rep, _Period > &  timeout)
inline

◆ wait_for() [2/3]

CV_WRAP bool cv::AsyncArray::wait_for ( double  timeoutNs) const
inline

◆ wait_for() [3/3]

bool cv::AsyncArray::wait_for ( int64  timeoutNs) const

Friends And Related Function Documentation

◆ Impl

friend struct Impl
friend

Member Data Documentation

◆ p

Impl* cv::AsyncArray::p
protected

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