Ignore:
Timestamp:
Sep 30, 2014, 12:02:12 PM (5 years ago)
Author:
nmedfort
Message:

First stage of refactoring PabloE classes.

File:
1 edited

Legend:

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

    r4198 r4199  
    88#define PS_SETMARKER_H
    99
    10 #include "ps_pablos.h"
     10#include "pe_pabloe.h"
    1111#include <string>
    1212
    13 class Assign : public PabloS
    14 {
     13namespace pablo {
     14
     15class Assign : public PabloE {
    1516public:
    16     Assign(std::string m, PabloE* expr);
    17     ~Assign();
    18     std::string getM();
    19     PabloE* getExpr();
     17    Assign(std::string m, PabloE* expr)
     18    : PabloE(ClassTypeId::Assign)
     19    , mM(m)
     20    , mExpr(expr)
     21    {
     22
     23    }
     24
     25    virtual ~Assign() {
     26        delete mExpr;
     27    }
     28
     29    inline std::string getM() const {
     30        return mM;
     31    }
     32
     33    inline PabloE* getExpr() const {
     34        return mExpr;
     35    }
    2036private:
    2137    std::string mM;
     
    2339};
    2440
     41}
     42
    2543#endif // PS_SETMARKER_H
    2644
Note: See TracChangeset for help on using the changeset viewer.