18 auto it =
m_map.find(k);
27 auto it =
m_map.find(k);
29 return found ? &(it->second) : static_cast<value_type const*>(
nullptr);
33 auto wasAdded =
m_map.insert(std::make_pair(v.
id(),
v));
34 if (forceUpdate and not wasAdded.second) {
35 wasAdded.first->second =
v;
37 return wasAdded.second;
46 fillme[
item.first].pset() =
item.second.toString();
51 os <<
"Registry with " <<
size() <<
" entries\n";
52 for (
auto const&
item : *
this) {
53 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()