traits.hpp File Reference


#include " opencv2/core/cvdef.h "

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

名称空间

  cv
  "black box" representation of the file storage associated with a file on disk.
 
  cv::traits
 

#define  CV_CREATE_MEMBER_CHECK (X)
 

宏定义文档编制

◆  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) }; \
};