--- parser3/src/include/pa_table.h 2024/12/08 01:16:42 1.77 +++ parser3/src/include/pa_table.h 2026/04/25 13:38:46 1.79 @@ -1,14 +1,14 @@ /** @file Parser: table class decl. - Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian */ #ifndef PA_TABLE_H #define PA_TABLE_H -#define IDENT_PA_TABLE_H "$Id: pa_table.h,v 1.77 2024/12/08 01:16:42 moko Exp $" +#define IDENT_PA_TABLE_H "$Id: pa_table.h,v 1.79 2026/04/25 13:38:46 moko Exp $" #include "pa_types.h" #include "pa_hash.h" @@ -40,15 +40,20 @@ public: /// gets column names columns_type columns() { return fcolumns; } - /// moves @a current pointer, can be out of range when restoring current in modified table + /// @return current pointer + size_t current() const { return fcurrent; } + + /// sets @a current pointer, can be out of range when restoring current in modified table void set_current(size_t acurrent) { fcurrent=acurrent0 ? count()-1 : 0; } - /// @return current pointer - size_t current() const { return fcurrent; } + /// sets or offsets @a current pointer, wrapping within the table void offset(bool absolute, int offset); + /// is that @c index falid? + bool valid(size_t index) const { return index name2number_hash_class; name2number_hash_class* name2number; - /// is that @c index falid? - bool valid(size_t index) const { return index