Exemple #1
0
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);
  }
}
Exemple #2
0
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);
    }
  }
}
Exemple #3
0
static void
VisitReverse(const OrderedTask::OrderedTaskPointVector &points,
             TaskPointConstVisitor &visitor)
{
  for (auto it = points.rbegin(), end = points.rend(); it != end; ++it)
    visitor.Visit(**it);
}
Exemple #4
0
static void
Visit(const OrderedTask::OrderedTaskPointVector &points,
      TaskPointConstVisitor &visitor)
{
  for (const TaskPoint *tp : points)
    visitor.Visit(*tp);
}
Exemple #5
0
void 
GotoTask::tp_CAccept(TaskPointConstVisitor& visitor, const bool reverse) const
{
  if (tp) {
    visitor.Visit(*tp);
  }
}
Exemple #6
0
void 
GotoTask::AcceptTaskPointVisitor(TaskPointConstVisitor& visitor) const
{
  if (tp)
    visitor.Visit(*tp);
}
Exemple #7
0
void 
AbortTask::AcceptTaskPointVisitor(TaskPointConstVisitor& visitor) const
{
  for (const TaskPoint &tp : task_points)
    visitor.Visit(tp);
}