14 #include "boost/bind.hpp" 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 boost::bind(std::equal_to<DataKey>(),
104 boost::bind(&FactoryInfo::key_,
109 throw cms::Exception(
"IdenticalProducts")<<
"Producer has been asked to produce "<<
info.key_.type().name()
110 <<
" \""<<
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
U second(std::pair< T, U > const &p)
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())