void Trigger::accept(TriggerVisitor& tv) { tv.visit(*this); send_visitor sv(tv); std::for_each(effects.begin(), effects.end(), sv); std::for_each(conds.begin(), conds.end(), sv); tv.visitEnd(*this); }
void Condition::accept(TriggerVisitor& tv) { tv.visit(*this); }