Annotation of parser3/src/include/pa_dictionary.h, revision 1.1

1.1     ! parser      1: /** @file
        !             2:        Parser: dictionary class decl.
        !             3: 
        !             4:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
        !             5: 
        !             6:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
        !             7: 
        !             8:        $Id: pa_stack.h,v 1.9 2001/05/17 10:22:24 parser Exp $
        !             9: */
        !            10: 
        !            11: #ifndef PA_DICTIONARY_H
        !            12: #define PA_DICTIONARY_H
        !            13: 
        !            14: #include "pa_config_includes.h"
        !            15: #include "pa_table.h"
        !            16: 
        !            17: /// simple dictionary, speding up lookups on contained two columned table
        !            18: class Dictionary : public Pooled {
        !            19: public:
        !            20: 
        !            21:        /// construct wrapper, grabbing first letters of first column into @b first
        !            22:        Dictionary(Table& atable);
        !            23: 
        !            24:        /// find first row that contains string in first column which starts @b src
        !            25:        void* first_that_starts(const char *src) const;
        !            26: 
        !            27:        /// where this table came from, may be NULL. proxy to Table
        !            28:        const String *origin_string() { return table.origin_string(); }
        !            29: 
        !            30: public:
        !            31: 
        !            32:        bool first[0x100];
        !            33: 
        !            34: private:
        !            35: 
        !            36:        Table& table;
        !            37: 
        !            38: };
        !            39: 
        !            40: #endif

E-mail: