Ignore:
Timestamp:
Oct 4, 2014, 8:40:23 AM (5 years ago)
Author:
nmedfort
Message:

Minor revisions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/ps_while.h

    r4206 r4209  
    1515class While : public PabloE {   
    1616public:
     17    typedef std::list<PabloE*> List;
     18    friend While * makeWhile(PabloE * expr, List psl);
    1719
    1820    static inline bool classof(const PabloE * e) {
     
    2123    static inline bool classof(const void *) {
    2224        return false;
    23     }
    24 
    25     typedef std::list<PabloE*> List;
    26 
    27     While(PabloE* expr, List psl)
    28     : PabloE(ClassTypeId::While)
    29     , mExpr(expr)
    30     , mPSList(psl)
    31     {
    32 
    3325    }
    3426
     
    4739        return mPSList;
    4840    }
     41protected:
     42    While(PabloE * expr, List psl)
     43    : PabloE(ClassTypeId::While)
     44    , mExpr(expr)
     45    , mPSList(psl)
     46    {
     47
     48    }
    4949private:
    5050    PabloE * const  mExpr;
    5151    List            mPSList;
    5252};
     53
     54inline While * makeWhile(PabloE * cond, While::List statements) {
     55    return new While(cond, statements);
     56}
    5357
    5458}
Note: See TracChangeset for help on using the changeset viewer.