grammarBaseClass.h

Go to the documentation of this file.
00001 // grammarBaseClass.h -- header file for the base class of all grammars
00002 
00003 #ifndef BASE_GRAMMAR_H
00004 #define BASE_GRAMMAR_H
00005 
00006 // class SgFile;
00007 
00008 class ROSE_BaseGrammar
00009    {
00010   // This class for a base class for all grammars
00011 
00012      public:
00013 
00014           ROSE_BaseGrammar ();
00015 
00016        // Experimental interface
00017        // ROSE_BaseGrammar ( SgFile *file );
00018        // SgFile* getProgramFile();
00019 
00020           void setParentGrammar ( ROSE_BaseGrammar* Xptr );
00021           ROSE_BaseGrammar* getParentGrammar () const;
00022 
00023        // Only one grammar is the root of all others
00024           bool isRootGrammar() const;
00025 
00026      private:
00027           ROSE_BaseGrammar* parentGrammar;
00028 
00029        // ROSE_BaseGrammar ();
00030           ROSE_BaseGrammar ( const ROSE_BaseGrammar & X );
00031           ROSE_BaseGrammar & operator= ( const ROSE_BaseGrammar & X );
00032    };
00033 
00034 #endif // ifndef BASE_GRAMMAR_H
00035 

Generated on Sat May 19 00:53:06 2012 for ROSE by  doxygen 1.4.7