void AbortTask::AcceptTaskPointVisitor(TaskPointConstVisitor& visitor, bool reverse) const { if (!reverse) { for (auto i = task_points.begin(), end = task_points.end(); i != end; ++i) visitor.Visit((const TaskPoint &)*i); } else { for (auto i = task_points.rbegin(), end = task_points.rend(); i != end; ++i) visitor.Visit((const TaskPoint &)*i); } }
void AbortTask::tp_CAccept(TaskPointConstVisitor& visitor, const bool reverse) const { if (!reverse) { for (AlternateTaskVector::const_iterator i= tps.begin(); i!= tps.end(); ++i) { visitor.Visit(*i->first); } } else { for (AlternateTaskVector::const_reverse_iterator i= tps.rbegin(); i!= tps.rend(); ++i) { visitor.Visit(*i->first); } } }
static void VisitReverse(const OrderedTask::OrderedTaskPointVector &points, TaskPointConstVisitor &visitor) { for (auto it = points.rbegin(), end = points.rend(); it != end; ++it) visitor.Visit(**it); }
static void Visit(const OrderedTask::OrderedTaskPointVector &points, TaskPointConstVisitor &visitor) { for (const TaskPoint *tp : points) visitor.Visit(*tp); }
void GotoTask::tp_CAccept(TaskPointConstVisitor& visitor, const bool reverse) const { if (tp) { visitor.Visit(*tp); } }
void GotoTask::AcceptTaskPointVisitor(TaskPointConstVisitor& visitor) const { if (tp) visitor.Visit(*tp); }
void AbortTask::AcceptTaskPointVisitor(TaskPointConstVisitor& visitor) const { for (const TaskPoint &tp : task_points) visitor.Visit(tp); }