static inline void shrinkMapVectorsToFit(RuleSet::AtomRuleMap& map) { RuleSet::AtomRuleMap::iterator end = map.end(); for (RuleSet::AtomRuleMap::iterator it = map.begin(); it != end; ++it) it->value->shrinkToFit(); }
static unsigned rulesCountForName(const RuleSet::AtomRuleMap& map, AtomicStringImpl* name) { if (const auto* rules = map.get(name)) return rules->size(); return 0; }
static inline void shrinkMapVectorsToFit(RuleSet::AtomRuleMap& map) { for (auto& vector : map.values()) vector->shrinkToFit(); }
static void reportAtomRuleMap(MemoryClassInfo* info, const RuleSet::AtomRuleMap& atomicRuleMap) { info->addMember(atomicRuleMap); for (RuleSet::AtomRuleMap::const_iterator it = atomicRuleMap.begin(); it != atomicRuleMap.end(); ++it) info->addMember(*it->value); }