-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved construction of ProductResolvers to a separate function
- Loading branch information
Showing
34 changed files
with
612 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef FWCore_Framework_ProductResolversFactory_h | ||
#define FWCore_Framework_ProductResolversFactory_h | ||
// -*- C++ -*- | ||
// | ||
// Package: FWCore/Framework | ||
// Class : ProductResolversFactory | ||
// | ||
/**\class edm::ProductResolversFactory ProductResolversFactory.h "ProductResolversFactory.h" | ||
Description: Creates ProductResolvers | ||
Usage: | ||
<usage> | ||
*/ | ||
// | ||
// Original Author: Chris Jones | ||
// Created: Mon, 30 Dec 2024 | ||
// | ||
|
||
// system include files | ||
#include <memory> | ||
#include "DataFormats/Provenance/interface/ProductRegistry.h" | ||
|
||
// user include files | ||
|
||
// forward declarations | ||
namespace edm { | ||
|
||
class ProductResolverBase; | ||
class ProductResolverIndexHelper; | ||
|
||
namespace productResolversFactory { | ||
std::vector<std::shared_ptr<ProductResolverBase>> make(BranchType bt, | ||
std::string_view iProcessName, | ||
ProductRegistry const& iReg, | ||
bool isForPrimaryProcess); | ||
inline std::vector<std::shared_ptr<ProductResolverBase>> makePrimary(BranchType bt, | ||
std::string_view iProcessName, | ||
ProductRegistry const& iReg) { | ||
return make(bt, iProcessName, iReg, true); | ||
} | ||
inline std::vector<std::shared_ptr<ProductResolverBase>> makeSubProcess(BranchType bt, | ||
std::string_view iProcessName, | ||
ProductRegistry const& iReg) { | ||
return make(bt, iProcessName, iReg, false); | ||
} | ||
|
||
}; // namespace productResolversFactory | ||
} // namespace edm | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.