13 [[cms::thread_safe]]
static Registry s_reg;
19 auto it =
m_map.find(k);
29 auto it =
m_map.find(k);
31 return found? &(it->second) : static_cast<value_type const*>(
nullptr);
36 auto wasAdded =
m_map.insert(std::make_pair(v.
id(),
v));
37 if(forceUpdate and not wasAdded.second) {
38 wasAdded.first->second =
v;
40 return wasAdded.second;
52 for (
auto const& item :
m_map) {
53 fillme[item.first].pset() = item.second.toString();
59 os <<
"Registry with " <<
size() <<
" entries\n";
60 for(
auto const& item : *
this) {
61 os << item.first <<
" " << item.second <<
'\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
bool insertMapped(value_type const &v, bool forceUpdate=false)
void print(std::ostream &os) const
void fillMap(regmap_type &fillme) const
static Registry * instance()