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';
bool getMapped(key_type const &k, value_type &result) const
std::map< ParameterSetID, ParameterSetBlob > regmap_type
void print(std::ostream &os) const
void fillMap(regmap_type &fillme) const
void clear()
Not thread safe.
bool insertMapped(value_type const &v, bool forceUpdate=false)
static Registry * instance()