Exemplo n.º 1
0
 void
 exploreNext (Result& res)
   {
     typedef Query<Pla>::Cursor Cursor;
     Cursor& cursor = static_cast<Cursor&> (res);
     
     while (!explore_->exhausted() )
       {
         Pla& elm (explore_->step());
         if (acceptable_(elm))
           {
             cursor.point_at (elm);
             return;
           }
       }
     
     ASSERT (explore_->exhausted());
     cursor.point_at (0);
   }