--- parser3/src/main/Attic/pa_array.C 2001/10/29 15:27:02 1.42 +++ parser3/src/main/Attic/pa_array.C 2002/01/21 12:10:07 1.44 @@ -2,9 +2,9 @@ Parser: array class. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_array.C,v 1.42 2001/10/29 15:27:02 paf Exp $ + $Id: pa_array.C,v 1.44 2002/01/21 12:10:07 paf Exp $ */ #include "pa_pool.h" @@ -152,6 +152,23 @@ void Array::for_each(For_each_func func, } } +/*void Array::for_each(For_each_func_storage func, void *info) { + Chunk *chunk=head; + while(true) { + if(chunk==tail) { // last chunk? + for(Chunk::Row *row=chunk->rows; row!=append_here; row++) + (*func)(&row->item, info); + break; + } else { + int count=chunk->count; + for(int i=0; irows[i].item, info); + chunk=chunk->rows[count].link; + } + } +} +*/ + /*void Array::for_each(For_each_func_const func, const void *info) const { Chunk *chunk=head; while(true) {