ie_plugin_ptr.hpp
Go to the documentation of this file.
1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 /**
6  * @brief A header file contains a wrapper class for handling plugin instantiation and releasing resources
7  *
8  * @file ie_plugin_ptr.hpp
9  */
10 #pragma once
11 
12 #include <string>
13 
15 #include "ie_extension.h"
16 #include "ie_plugin.hpp"
17 
18 namespace InferenceEngine {
19 namespace details {
20 
21 IE_SUPPRESS_DEPRECATED_START
22 
23 /**
24  * @deprecated Use InferenceEngine::Core instead. This API will be removed in 2021.1 release.
25  * @brief This class defines the name of the fabric for creating an IInferencePlugin object in DLL
26  */
27 template <>
28 class INFERENCE_ENGINE_DEPRECATED("Use InferenceEngine::Core instead") SOCreatorTrait<IInferencePlugin> {
29 public:
30  /**
31  * @brief A name of the fabric for creating IInferencePlugin object in DLL
32  */
33  static constexpr auto name = "CreatePluginEngine";
34 };
35 
36 } // namespace details
37 
38 /**
39  * @brief A C++ helper to work with objects created by the plugin.
40  *
41  * Implements different interfaces.
42  */
43 using InferenceEnginePluginPtr = InferenceEngine::details::SOPointer<IInferencePlugin>;
44 
45 IE_SUPPRESS_DEPRECATED_END
46 
47 } // namespace InferenceEngine
InferenceEngine::details::SOPointer< IInferencePlugin > InferenceEnginePluginPtr
A C++ helper to work with objects created by the plugin.
Definition: ie_plugin_ptr.hpp:43
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
A header file for Main Inference Engine API.
std::string name
Layer name.
Definition: ie_layers.h:42
This is a wrapper class for handling plugin instantiation and releasing resources.
A header file that defines a wrapper class for handling extension instantiation and releasing resourc...