1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

dnn: use inheritance for OpenVINO net impl

This commit is contained in:
Alexander Alekhin
2022-03-07 22:26:20 +00:00
parent b26fc6f31b
commit ca7f964104
14 changed files with 413 additions and 133 deletions
+10 -1
View File
@@ -52,6 +52,11 @@
namespace cv {
namespace dnn {
namespace accessor {
class DnnNetAccessor; // forward declaration
}
CV__DNN_INLINE_NS_BEGIN
//! @addtogroup dnn
//! @{
@@ -840,8 +845,12 @@ CV__DNN_INLINE_NS_BEGIN
*/
CV_WRAP int64 getPerfProfile(CV_OUT std::vector<double>& timings);
private:
struct Impl;
inline Impl* getImpl() const { return impl.get(); }
inline Impl& getImplRef() const { CV_DbgAssert(impl); return *impl.get(); }
friend class accessor::DnnNetAccessor;
protected:
Ptr<Impl> impl;
};