--- parser3/src/include/pa_array.h 2001/03/19 15:29:37 1.24 +++ parser3/src/include/pa_array.h 2001/03/21 14:06:43 1.28 @@ -1,9 +1,11 @@ /** @file - Parser + Parser: array class decl. + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_array.h,v 1.24 2001/03/19 15:29:37 paf Exp $ + $Id: pa_array.h,v 1.28 2001/03/21 14:06:43 paf Exp $ */ #ifndef PA_ARRAY_H @@ -15,20 +17,19 @@ #include "pa_types.h" #include "pa_string.h" -/** @brief +/** Pooled Array. - Internal structure: @verbatim - - Array Chunk0 - ====== ======== - head--------------->[ptr] - append_here-------->[ptr] - link_row ........ - . . - . [ptr] - ...........>[link to the next chunk] - + Internal structure: + @verbatim + Array Chunk0 + ====== ======== + head--------------->[ptr] + append_here-------->[ptr] + link_row ........ + . . + . [ptr] + ...........>[link to the next chunk] @endverbatim */ @@ -62,8 +63,8 @@ public: /// append other Array portion to this one. starting from offset Array& append_array(const Array& src, int offset=0); - /** @brief - quickly get some item considering + /** + quickly gets some item considering... these true: - index increments from 0 to size()-1 @@ -85,7 +86,7 @@ public: void put(int index, Item *item); /// convinient way to get strings from Array. I long for Array const String *get_string(int index) const { - return static_cast(get(index)); + return const_cast(static_cast(get(index))); } private: