| 182 | } |
| 183 | |
| 184 | IPluginV2Ext* DetectionLayer::clone() const noexcept |
| 185 | { |
| 186 | try |
| 187 | { |
| 188 | DetectionLayer* plugin = new DetectionLayer(*this); |
| 189 | plugin->setPluginNamespace(mNameSpace.c_str()); |
| 190 | return plugin; |
| 191 | } |
| 192 | catch (std::exception const& e) |
| 193 | { |
| 194 | caughtError(e); |
| 195 | } |
| 196 | return nullptr; |
| 197 | } |
| 198 | |
| 199 | void DetectionLayer::setPluginNamespace(char const* libNamespace) noexcept |
| 200 | { |
nothing calls this directly
no test coverage detected