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::GCompileArg Struct Reference

Represents an arbitrary compilation argument. More...

#include <opencv2/gapi/gcommon.hpp>

Collaboration diagram for cv::GCompileArg:

Public Member Functions

template<typename T , typename std::enable_if<!detail::is_compile_arg< T >::value, int >::type = 0>
 GCompileArg (T &&t)
 
template<typename T >
T & get ()
 
template<typename T >
const T & get () const
 

Public Attributes

std::string tag
 

Detailed Description

Represents an arbitrary compilation argument.

Any value can be wrapped into cv::GCompileArg, but only known ones (to G-API or its backends) can be interpreted correctly.

Normally objects of this class shouldn't be created manually, use cv::compile_args() function which automatically wraps everything passed in (a variadic template parameter pack) into a vector of cv::GCompileArg objects.

Constructor & Destructor Documentation

◆ GCompileArg()

template<typename T , typename std::enable_if<!detail::is_compile_arg< T >::value, int >::type = 0>
cv::GCompileArg::GCompileArg ( T &&  t)
inlineexplicit

Member Function Documentation

◆ get() [1/2]

template<typename T >
T& cv::GCompileArg::get ( )
inline

References cv::util::any_cast().

Here is the call graph for this function:

◆ get() [2/2]

template<typename T >
const T& cv::GCompileArg::get ( ) const
inline

References cv::util::any_cast().

Here is the call graph for this function:

Member Data Documentation

◆ tag

std::string cv::GCompileArg::tag

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