20 auto it =
m_map.find(k);
30 auto it =
m_map.find(k);
32 return found? &(it->second) : static_cast<value_type const*>(
nullptr);
37 auto wasAdded =
m_map.insert(std::make_pair(v.
id(),
v));
38 if(forceUpdate and not wasAdded.second) {
39 wasAdded.first->second =
v;
41 return wasAdded.second;
53 for (
auto const& item :
m_map) {
54 fillme[item.first].pset() = item.second.toString();
60 os <<
"Registry with " <<
size() <<
" entries\n";
61 for(
auto const& item : *
this) {
62 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()