1 #ifndef DataFormats_Provenance_ProductRegistry_h
2 #define DataFormats_Provenance_ProductRegistry_h
26 #include <string_view>
33 class ProductResolverIndexHelper;
60 void setFrozen(
bool initializeLookupInfo =
true);
62 void setFrozen(std::set<TypeID>
const& productTypesConsumed,
63 std::set<TypeID>
const& elementTypesConsumed,
104 itEntry != itEntryEnd;
106 iFunc(itEntry->second);
111 void print(std::ostream& os)
const;
133 std::string_view moduleLabel,
134 std::string_view productInstanceName)
const;
171 std::set<TypeID>
const* elementTypesConsumed,
174 std::map<TypeID, TypeID>
const& containedTypeMap,
175 std::map<
TypeID, std::vector<TypeWithDict>>
const& containedTypeToBaseTypesMap);
178 std::set<TypeID>
const* elementTypesConsumed,
179 std::map<TypeID, TypeID>
const& containedTypeMap,
180 std::map<
TypeID, std::vector<TypeWithDict>>& containedTypeToBaseTypesMap);
constexpr bool operator==(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
void initializeTransients()
void setProductProduced(BranchType branchType)
unsigned int ProductResolverIndex
std::vector< std::tuple< KindOfType, TypeID, std::string, std::string, std::string >> AliasToOriginalVector
void throwIfNotFrozen() const
std::vector< std::string > allBranchNames() const
std::map< BranchKey, BranchDescription const > ConstProductList
std::map< BranchKey, BranchDescription > ProductList
bool anyProducts(BranchType const brType) const
void addElementTypesForAliases(std::set< TypeID > const *elementTypesConsumed, std::map< TypeID, TypeID > const &containedTypeMap, std::map< TypeID, std::vector< TypeWithDict >> const &containedTypeToBaseTypesMap)
ProductList::size_type size() const
void addLabelAlias(BranchDescription const &productdesc, std::string const &labelAlias, std::string const &instanceAlias)
AliasToOriginalVector aliasToOriginal_
virtual void addCalled(BranchDescription const &, bool iFromListener)
ProductList const & productList() const
void initializeLookupTables(std::set< TypeID > const *productTypesConsumed, std::set< TypeID > const *elementTypesConsumed, std::string const *processName)
void setUnscheduledProducts(std::set< std::string > const &unscheduledLabels)
void checkForDuplicateProcessName(BranchDescription const &desc, std::string const *processName) const
ProductResolverIndex & nextIndexValue(BranchType branchType)
virtual ~ProductRegistry()
std::vector< BranchDescription const * > allBranchDescriptions() const
std::string merge(ProductRegistry const &other, std::string const &fileName, BranchDescription::MatchMode branchesMustMatch=BranchDescription::Permissive)
void setFrozen(bool initializeLookupInfo=true)
constexpr bool operator!=(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
void freezeIt(bool frozen=true)
void callForEachBranch(T const &iFunc)
void print(std::ostream &os) const
bool productProduced(BranchType branchType) const
void checkDictionariesOfConsumedTypes(std::set< TypeID > const *productTypesConsumed, std::set< TypeID > const *elementTypesConsumed, std::map< TypeID, TypeID > const &containedTypeMap, std::map< TypeID, std::vector< TypeWithDict >> &containedTypeToBaseTypesMap)
std::array< ProductResolverIndex, NumBranchTypes > nextIndexValues_
std::array< edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > >, NumBranchTypes > productLookups_
ProductList & productListUpdator()
std::shared_ptr< ProductResolverIndexHelper const > productLookup(BranchType branchType) const
bool anyProductProduced() const
ProductResolverIndex const & getNextIndexValue(BranchType branchType) const
void throwIfFrozen() const
void updateFromInput(ProductList const &other)
std::array< bool, NumBranchTypes > productProduced_
std::vector< std::string > aliasToModules(KindOfType kindOfType, TypeID const &type, std::string_view moduleLabel, std::string_view productInstanceName) const
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
ProductResolverIndex indexFrom(BranchID const &iID) const
void addProduct(BranchDescription const &productdesc, bool iFromListener=false)
std::map< BranchID, ProductResolverIndex > branchIDToIndex_
void copyProduct(BranchDescription const &productdesc)