--- parser3/src/include/pa_dictionary.h 2003/02/14 12:59:10 1.13.2.7 +++ parser3/src/include/pa_dictionary.h 2003/03/20 11:11:55 1.13.2.8.2.4 @@ -8,7 +8,7 @@ #ifndef PA_DICTIONARY_H #define PA_DICTIONARY_H -static const char* IDENT_DICTIONARY_H="$Date: 2003/02/14 12:59:10 $"; +static const char* IDENT_DICTIONARY_H="$Date: 2003/03/20 11:11:55 $"; #include "pa_table.h" @@ -17,21 +17,14 @@ class Dictionary: public PA_Object { public: /// construct wrapper, grabbing first letters of first column into @b first - Dictionary(TablePtr atable, double amin_ratio=1); - - /// get max ratio - double max_ratio() { return fmax_ratio; } + Dictionary(Table& atable); /// find first row that contains string in first column which starts @b src - Table::element_type first_that_starts(const char* src, size_t src_size=0) const; - - /// where this table came from, may be NULL. proxy to Table - StringPtr origin_string() { return table->origin_string(); } + Table::element_type first_that_starts(const char* str) const; private: - TablePtr table; - double fmax_ratio; + Table& table; private: friend void pa_dictionary_add_first(Table::element_type row, Dictionary* self);