DictValue.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. //
  2. // This file is auto-generated. Please don't modify it!
  3. //
  4. #pragma once
  5. #ifdef __cplusplus
  6. //#import "opencv.hpp"
  7. #import "opencv2/dnn.hpp"
  8. #import "opencv2/dnn/dict.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. NS_ASSUME_NONNULL_BEGIN
  14. // C++: class DictValue
  15. /**
  16. * This struct stores the scalar value (or array) of one of the following type: double, cv::String or int64.
  17. * TODO: Maybe int64 is useless because double type exactly stores at least 2^52 integers.
  18. *
  19. * Member of `Dnn`
  20. */
  21. CV_EXPORTS @interface DictValue : NSObject
  22. #ifdef __cplusplus
  23. @property(readonly)cv::Ptr<cv::dnn::DictValue> nativePtr;
  24. #endif
  25. #ifdef __cplusplus
  26. - (instancetype)initWithNativePtr:(cv::Ptr<cv::dnn::DictValue>)nativePtr;
  27. + (instancetype)fromNative:(cv::Ptr<cv::dnn::DictValue>)nativePtr;
  28. #endif
  29. #pragma mark - Methods
  30. //
  31. // cv::dnn::DictValue::DictValue(int i)
  32. //
  33. - (instancetype)initWithI:(int)i;
  34. //
  35. // cv::dnn::DictValue::DictValue(double p)
  36. //
  37. - (instancetype)initWithP:(double)p;
  38. //
  39. // cv::dnn::DictValue::DictValue(String s)
  40. //
  41. - (instancetype)initWithS:(NSString*)s;
  42. //
  43. // bool cv::dnn::DictValue::isInt()
  44. //
  45. - (BOOL)isInt NS_SWIFT_NAME(isInt());
  46. //
  47. // bool cv::dnn::DictValue::isString()
  48. //
  49. - (BOOL)isString NS_SWIFT_NAME(isString());
  50. //
  51. // bool cv::dnn::DictValue::isReal()
  52. //
  53. - (BOOL)isReal NS_SWIFT_NAME(isReal());
  54. //
  55. // int cv::dnn::DictValue::getIntValue(int idx = -1)
  56. //
  57. - (int)getIntValue:(int)idx NS_SWIFT_NAME(getIntValue(idx:));
  58. - (int)getIntValue NS_SWIFT_NAME(getIntValue());
  59. //
  60. // double cv::dnn::DictValue::getRealValue(int idx = -1)
  61. //
  62. - (double)getRealValue:(int)idx NS_SWIFT_NAME(getRealValue(idx:));
  63. - (double)getRealValue NS_SWIFT_NAME(getRealValue());
  64. //
  65. // String cv::dnn::DictValue::getStringValue(int idx = -1)
  66. //
  67. - (NSString*)getStringValue:(int)idx NS_SWIFT_NAME(getStringValue(idx:));
  68. - (NSString*)getStringValue NS_SWIFT_NAME(getStringValue());
  69. @end
  70. NS_ASSUME_NONNULL_END