void StatBag::exists(const string &key)
{
- if(!d_keyDescrips.count(key))
+ if(!d_keyDescriptions.count(key))
{
throw PDNSException("Trying to deposit into unknown StatBag key '"+key+"'");
}
string StatBag::getDescrip(const string &item)
{
exists(item);
- return d_keyDescrips[item];
+ return d_keyDescriptions[item];
}
StatType StatBag::getStatType(const string &item)
auto i=make_unique<AtomicCounter>(0);
d_stats[key]=std::move(i);
- d_keyDescrips[key]=descrip;
+ d_keyDescriptions[key]=descrip;
d_statTypes[key]=statType;
}
}
d_funcstats[key]=std::move(func);
- d_keyDescrips[key]=descrip;
+ d_keyDescriptions[key]=descrip;
d_statTypes[key]=statType;
}
class StatBag
{
map<string, std::unique_ptr<AtomicCounter>> d_stats;
- map<string, string> d_keyDescrips;
+ map<string, string> d_keyDescriptions;
map<string, StatType> d_statTypes;
map<string,StatRing<string, CIStringCompare> >d_rings;
map<string,StatRing<SComboAddress> >d_comboRings;