71 typedef Record2Factories::iterator
Iterator;
73 for(Iterator it = range.first; it != range.second; ++it) {
75 std::shared_ptr<DataProxy> proxy(it->second.factory_->makeProxy().release());
76 if(
nullptr != proxy.get()) {
85 std::unique_ptr<ProxyFactoryBase> iFactory,
88 if(
nullptr == iFactory.get()) {
89 assert(
false &&
"Factor pointer was null");
95 std::shared_ptr<ProxyFactoryBase>
temp(iFactory.release());
100 std::pair<Record2Factories::const_iterator,Record2Factories::const_iterator> range =
102 if(range.second != std::find_if(range.first,range.second,
103 [&
info](
const auto& r2f) {
104 return r2f.second.key_ == info.key_;
107 throw cms::Exception(
"IdenticalProducts")<<
"Producer has been asked to produce "<<
info.key_.type().name()
108 <<
" \""<<
info.key_.name().value()<<
"\" multiple times.\n Please modify the code.";
virtual void registerProxies(const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
override DataProxyProvider method
virtual ~ESProxyFactoryProducer() noexcept(false)
void usingRecordWithKey(const EventSetupRecordKey &)
std::multimap< eventsetup::EventSetupRecordKey, eventsetup::FactoryInfo > record2Factories_
std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
virtual void newInterval(const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
overrides DataProxyProvider method
Container::value_type value_type
void invalidateProxies(const EventSetupRecordKey &iRecordKey)
std::multimap< EventSetupRecordKey, FactoryInfo > Record2Factories
virtual void registerFactoryWithKey(const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())