1 #ifndef FWCore_Framework_ProductRegistryHelper_h 2 #define FWCore_Framework_ProductRegistryHelper_h 16 #include <type_traits> 19 class ModuleDescription;
20 class ProductRegistry;
21 struct DoNotRecordParents;
39 transition_(transition),
41 productInstanceName_(
std::
move(pin)),
51 value_(iItem), token_(
std::
move(iToken)) {}
66 value_(iItem), token_(
std::
move(iToken)) {}
69 value_(iS.value_), token_(iS.token_.
index()) {}
90 void addToRegistry(TypeLabelList::const_iterator
const& iBegin,
91 TypeLabelList::const_iterator
const& iEnd,
94 bool iIsListener=
false);
104 template <
class ProductType>
106 return produces<ProductType, InEvent>(
std::string());
109 template <
class ProductType>
111 return produces<ProductType, InEvent>(
std::move(instanceName));
114 template <
typename ProductType, BranchType B>
119 template <
typename ProductType, BranchType B>
121 TypeID tid(
typeid(ProductType));
126 template <
typename ProductType, Transition B>
131 template <
typename ProductType, Transition B>
133 TypeID tid(
typeid(ProductType));
143 template <BranchType B>
150 template <Transition B>
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
std::vector< bool > const & recordProvenanceList() const
TypeLabelList typeLabelList_
TypeLabelList const & typeLabelList() const
used by the fwk to register the list of products of this module
BranchAliasSetterT< T > & setBranchAlias(std::string alias)
BranchAliasSetterT< ProductType > produces(std::string instanceName)
BranchAliasSetterT(TypeLabelItem &iItem, EDPutTokenT< T > iToken)
BranchAliasSetter produces(const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
std::string productInstanceName_
TypeLabelItem(Transition const &transition, TypeID const &tid, std::string pin)
std::vector< TypeLabelItem > TypeLabelList
BranchAliasSetterT< ProductType > produces(std::string instanceName)
static const std::string B
BranchAliasSetter(TypeLabelItem &iItem, EDPutToken iToken)
constexpr Transition convertToTransition(BranchType iValue)
BranchAliasSetterT< ProductType > produces()
BranchAliasSetter & setBranchAlias(std::string alias)
BranchAliasSetterT(BranchAliasSetter &&iS)
std::vector< bool > recordProvenanceList_
static void addToRegistry(TypeLabelList::const_iterator const &iBegin, TypeLabelList::const_iterator const &iEnd, ModuleDescription const &iDesc, ProductRegistry &iReg, bool iIsListener=false)
BranchAliasSetter produces(const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)