Skip to content
Snippets Groups Projects
Commit 50445d23 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

FlavorTagDiscriminants: use extends to auto-declare interface inheritance

parent c86ecece
No related branches found
No related tags found
No related merge requests found
......@@ -28,10 +28,11 @@ namespace FlavorTagDiscriminants
};
}
class NNSharingSvc: public asg::AsgService, public INNSharingSvc
class NNSharingSvc: public extends<asg::AsgService, INNSharingSvc>
{
public:
NNSharingSvc(const std::string& name, ISvcLocator* svc);
using extends::extends; // base class constructor
virtual std::shared_ptr<const GNN> get(
const std::string& nn_name,
const GNNOptions& opts) override;
......
......@@ -19,11 +19,6 @@ namespace FlavorTagDiscriminants {
}
}
NNSharingSvc::NNSharingSvc(const std::string& name, ISvcLocator* svc):
AsgService(name, svc)
{
declareServiceInterface<INNSharingSvc>();
}
std::shared_ptr<const GNN> NNSharingSvc::get(
const std::string& nn_name,
const GNNOptions& opts) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment