Ignore:
Timestamp:
Aug 11, 2007, 4:03:49 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/Variable.h

    r271 r273  
    214214class Variables : public vector<Variable *>
    215215{
     216    int allSize;
     217    int allInitSize;
    216218public:
    217     Variables(){}
     219    Variables()
     220        : allSize( 0 )
     221        , allInitSize( 0 )
     222    {
     223    }
    218224    ~Variables(){
    219225        Clear();
     
    225231        }
    226232
     233        allSize = 0;
     234        allInitSize = 0;
    227235        clear();
    228236    }
     
    235243
    236244    const Variable *BackSearch( const Symbol &symbol ) const;
    237 
    238245    const Variable *Find( const Symbol &symbol )const;
     246
     247    void Add( Variable *pVar, bool isInitArea );
     248
     249    int GetAllSize() const
     250    {
     251        return allSize;
     252    }
     253    int GetAllInitSize() const
     254    {
     255        return allInitSize;
     256    }
    239257
    240258
Note: See TracChangeset for help on using the changeset viewer.