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::util Namespace Reference

Namespaces

 detail
 

Classes

class  any
 
class  bad_any_cast
 
class  bad_optional_access
 
class  bad_variant_access
 
struct  monostate
 
class  optional
 
struct  type_list_index
 
class  variant
 

Functions

template<class value_t >
value_t * any_cast (any *operand)
 
template<class value_t >
const value_t * any_cast (const any *operand)
 
template<class value_t >
value_t & any_cast (any &operand)
 
template<class value_t >
const value_t & any_cast (const any &operand)
 
template<typename T , typename... Types>
T & get (util::variant< Types... > &v)
 
template<typename T , typename... Types>
const T & get (const util::variant< Types... > &v)
 
template<typename T , typename... Types>
bool holds_alternative (const util::variant< Types... > &v) noexcept
 
template<class T >
optional< typename std::decay< T >::type > make_optional (T &&value)
 
template<typename... Us>
bool operator!= (const variant< Us... > &lhs, const variant< Us... > &rhs)
 
bool operator== (const util::monostate &, const util::monostate &)
 
template<typename... Us>
bool operator== (const variant< Us... > &lhs, const variant< Us... > &rhs)
 
template<typename T >
void suppress_unused_warning (const T &)
 Utility template function to prevent "unused" warnings by various compilers. More...
 
template<class ExceptionType >
void throw_error (ExceptionType &&e)
 
template<class value_t >
value_t & unsafe_any_cast (any &operand)
 
template<class value_t >
const value_t & unsafe_any_cast (const any &operand)
 

Function Documentation

◆ any_cast() [1/4]

template<class value_t >
value_t* cv::util::any_cast ( any operand)

References any_cast(), and cv::internal::down_cast().

Referenced by any_cast(), cv::GArg::get(), cv::GCompileArg::get(), cv::util::any::operator=(), and unsafe_any_cast().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ any_cast() [2/4]

template<class value_t >
const value_t* cv::util::any_cast ( const any operand)

References any_cast(), and cv::internal::down_cast().

Here is the call graph for this function:

◆ any_cast() [3/4]

template<class value_t >
value_t& cv::util::any_cast ( any operand)

References any_cast(), and throw_error().

Here is the call graph for this function:

◆ any_cast() [4/4]

template<class value_t >
const value_t& cv::util::any_cast ( const any operand)

References any_cast(), and throw_error().

Here is the call graph for this function:

◆ get() [1/2]

template<typename T , typename... Types>
T & cv::util::get ( util::variant< Types... > &  v)

References throw_error().

Here is the call graph for this function:

◆ get() [2/2]

template<typename T , typename... Types>
const T & cv::util::get ( const util::variant< Types... > &  v)

References throw_error().

Here is the call graph for this function:

◆ holds_alternative()

template<typename T , typename... Types>
bool cv::util::holds_alternative ( const util::variant< Types... > &  v)
noexcept

References holds_alternative().

Referenced by holds_alternative().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_optional()

template<class T >
optional< typename std::decay< T >::type > cv::util::make_optional ( T &&  value)

◆ operator!=()

template<typename... Us>
bool cv::util::operator!= ( const variant< Us... > &  lhs,
const variant< Us... > &  rhs 
)

◆ operator==() [1/2]

bool cv::util::operator== ( const util::monostate ,
const util::monostate  
)
inline

◆ operator==() [2/2]

template<typename... Us>
bool cv::util::operator== ( const variant< Us... > &  lhs,
const variant< Us... > &  rhs 
)

References cv::util::variant< Ts >::index(), and cv::util::variant< Ts >::memory.

Here is the call graph for this function:

◆ suppress_unused_warning()

template<typename T >
void cv::util::suppress_unused_warning ( const T &  )

Utility template function to prevent "unused" warnings by various compilers.

Referenced by cv::gapi::imgproc::ocl::kernels(), cv::detail::postprocess(), and cv::detail::postprocess_ocl().

Here is the caller graph for this function:

◆ throw_error()

template<class ExceptionType >
void cv::util::throw_error ( ExceptionType &&  e)

◆ unsafe_any_cast() [1/2]

template<class value_t >
value_t& cv::util::unsafe_any_cast ( any operand)
inline

References any_cast(), and unsafe_any_cast().

Referenced by cv::util::any::operator=(), unsafe_any_cast(), and cv::GArg::unsafe_get().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unsafe_any_cast() [2/2]

template<class value_t >
const value_t& cv::util::unsafe_any_cast ( const any operand)
inline

References any_cast(), and unsafe_any_cast().

Here is the call graph for this function: