Ignore:
Timestamp:
Oct 20, 2014, 12:57:30 PM (5 years ago)
Author:
nmedfort
Message:

Minor changes.

File:
1 edited

Legend:

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

    r4244 r4253  
    2727    }
    2828    inline const ExpressionList & getBody() const {
    29         return mPSList;
     29        return mBody;
     30    }
     31    inline void setCarryCount(const unsigned count) {
     32        mCarryCount = count;
     33    }
     34    inline unsigned getCarryCount() const {
     35        return mCarryCount;
    3036    }
    3137protected:
    32     While(PabloAST * expr, ExpressionList && psl)
     38    While(PabloAST * expr, ExpressionList && body)
    3339    : PabloAST(ClassTypeId::While)
    3440    , mExpr(expr)
    35     , mPSList(psl)
     41    , mBody(std::move(body))
     42    , mCarryCount(0)
    3643    {
    3744
    3845    }
    3946private:
    40     PabloAST * const  mExpr;
    41     ExpressionList  mPSList;
     47    PabloAST * const    mExpr;
     48    ExpressionList      mBody;
     49    unsigned            mCarryCount;
    4250};
    4351
Note: See TracChangeset for help on using the changeset viewer.