void operator() (RuleType const& r) { typename RuleType::symbolizers const& symbols = r.get_symbolizers(); symbolizer_attributes s_attr(names_,filter_factor_); for (auto symbol : symbols) { boost::apply_visitor(s_attr,symbol); } expression_ptr const& expr = r.get_filter(); boost::apply_visitor(f_attr,*expr); }
void operator() (RuleType const& r) { typename RuleType::symbolizers const& symbols = r.get_symbolizers(); symbolizer_attributes s_attr(names_,filter_factor_); for (auto const& sym : symbols) { util::apply_visitor(std::ref(s_attr), sym); } expression_ptr const& expr = r.get_filter(); util::apply_visitor(f_attr,*expr); }
void operator() (RuleType const& r) { typename RuleType::symbolizers const& symbols = r.get_symbolizers(); typename RuleType::symbolizers::const_iterator symIter=symbols.begin(); symbolizer_attributes s_attr(names_); while (symIter != symbols.end()) { boost::apply_visitor(s_attr,*symIter++); } expression_ptr const& expr = r.get_filter(); boost::apply_visitor(f_attr,*expr); }