Annotation of parser3/src/types/pa_property.h, revision 1.5

1.1       paf         1: /** @file
                      2:        Parser: Property class decl.
                      3: 
1.5     ! moko        4:        Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com)
1.1       paf         5:        Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
                      6: */
                      7: 
                      8: #ifndef PA_PROPERTY_H
                      9: #define PA_PROPERTY_H
                     10: 
1.5     ! moko       11: #define IDENT_PA_PROPERTY_H "$Id: 2009-08-11 10:18:43 $"
1.1       paf        12: 
                     13: class Method;
1.3       misha      14: class Value;
1.1       paf        15: 
                     16: /** \b junction is getter and setter methods.
                     17: 
                     18:        it is used to cache our knowledge that some element is in fact property
                     19:        and to save us one hash lookup and one name construction (element--get_element/set_leement)
                     20: */
                     21: class Property: public PA_Object {
                     22: public:
                     23:        Method* getter;
                     24:        Method* setter;
1.3       misha      25:        Value *value;
                     26: 
                     27:        Property() : getter(0), setter(0), value(0){}
1.4       misha      28:        Property(Property &prop) : getter(prop.getter), setter(prop.setter), value(prop.value){}
1.1       paf        29: };
                     30: 
                     31: #endif

E-mail: