--- parser3/src/main/Attic/pa_array.C 2001/11/05 11:46:27 1.43 +++ parser3/src/main/Attic/pa_array.C 2002/01/21 12:10:07 1.44 @@ -4,7 +4,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_array.C,v 1.43 2001/11/05 11:46:27 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) {