15 [[cms::thread_safe]]
static Registry s_reg;
21 auto it =
m_map.find(k);
31 auto it =
m_map.find(k);
33 return found? &(it->second) : static_cast<value_type const*>(
nullptr);
38 return m_map.insert(std::make_pair(v.
id(),
v)).second;
50 for (
auto const& item :
m_map) {
51 fillme[item.first].pset() = item.second.toString();
57 os <<
"Registry with " <<
size() <<
" entries\n";
58 for(
auto const& item : *
this) {
59 os << item.first <<
" " << item.second <<
'\n';
67 <<
"Illegal attempt to access the process top level parameter set ID\n"
68 <<
"before that parameter set has been frozen and registered.\n"
69 <<
"The parameter set can be changed during module validation,\n"
70 <<
"which occurs concurrently with module construction.\n"
71 <<
"It is illegal to access the parameter set before it is frozen.\n";
86 <<
"Illegal attempt to access the process top level parameter set ID\n"
87 <<
"before that parameter set has been frozen and registered.\n"
88 <<
"The parameter set can be changed during module validation,\n"
89 <<
"which occurs concurrently with module construction.\n"
90 <<
"It is illegal to access the parameter set before it is frozen.\n";
97 <<
"Unable to find the ParameterSet for id: "
99 <<
";\nthis was supposed to be the process ParameterSet\n";
ParameterSetID id() const
std::map< ParameterSetID, ParameterSetBlob > regmap_type
void clear()
Not thread safe.
bool getMapped(key_type const &k, value_type &result) const
void setProcessParameterSetID(ParameterSetID const &id)
Associated free functions.
static ParameterSetID s_ProcessParameterSetID
ParameterSet const & getProcessParameterSet()
void print(std::ostream &os) const
bool insertMapped(value_type const &v)
ParameterSetID const & getProcessParameterSetID()
void fillMap(regmap_type &fillme) const
static Registry * instance()