Пример #1
0
 static std::vector<Instant> Times(
     not_null<FakeTrajectory const*> const trajectory) {
   std::vector<Instant> times;
   for (FakeTrajectory::Iterator it = trajectory->Begin();
        it != trajectory->End();
        ++it) {
     times.push_back(*it.current());
   }
   return times;
 }
Пример #2
0
 static std::vector<Instant> After(
     not_null<FakeTrajectory const*> const trajectory,
     Instant const& time) {
   std::vector<Instant> after;
   for (FakeTrajectory::Iterator it = trajectory->Find(time);
        it != trajectory->End();
        ++it) {
     after.push_back(*it.current());
   }
   return after;
 }