OpenCV 4.11.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
traits.hpp File Reference
Include dependency graph for traits.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  cv::DataDepth< _Tp >
 A helper class for cv::DataType. More...
 
class  cv::DataType< _Tp >
 Template "trait" class for OpenCV primitive data types. More...
 

Namespaces

namespace  cv
 
namespace  cv::traits
 

Macros

#define CV_CREATE_MEMBER_CHECK(X)
 

Macro Definition Documentation

◆ CV_CREATE_MEMBER_CHECK

#define CV_CREATE_MEMBER_CHECK ( X)
Value:
template<typename T> class CheckMember_##X { \
struct Fallback { int X; }; \
struct Derived : T, Fallback { }; \
template<typename U, U> struct Check; \
typedef char CV_NO[1]; \
typedef char CV_YES[2]; \
template<typename U> static CV_NO & func(Check<int Fallback::*, &U::X> *); \
template<typename U> static CV_YES & func(...); \
public: \
typedef CheckMember_##X type; \
enum { value = sizeof(func<Derived>(0)) == sizeof(CV_YES) }; \
};