Diff for /parser3/src/include/pa_array.h between versions 1.67 and 1.68

version 1.67, 2005/11/25 12:21:34 version 1.68, 2006/04/09 13:38:47
Line 165  public: Line 165  public:
         }          }
   
         /// iterate over all elements          /// iterate over all elements
           template<typename I> void for_each(bool (*callback)(T, I), I info) const {
                   T *last=felements+fused;
                   for(T *current=felements; current<last; current++)
                           if(callback(*current, info))
                                   return;
           }
   
           /// iterate over all elements
         template<typename I> void for_each_ref(void (*callback)(T&, I), I info) {          template<typename I> void for_each_ref(void (*callback)(T&, I), I info) {
                 T *last=felements+fused;                  T *last=felements+fused;
                 for(T *current=felements; current<last; current++)                  for(T *current=felements; current<last; current++)
Line 228  public: Line 236  public:
         }          }
   
         /// quickly extracts next Array element          /// quickly extracts next Array element
         const T next() {          T next() {
                 return *(fcurrent++);                  return *(fcurrent++);
         }          }
   

Removed from v.1.67  
changed lines
  Added in v.1.68


E-mail: