source: icGREP/icgrep-devel/icgrep/pablo/ps_assign.h @ 4199

Last change on this file since 4199 was 4199, checked in by nmedfort, 5 years ago

First stage of refactoring PabloE classes.

File size: 721 bytes
Line 
1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef PS_SETMARKER_H
8#define PS_SETMARKER_H
9
10#include "pe_pabloe.h"
11#include <string>
12
13namespace pablo {
14
15class Assign : public PabloE {
16public:
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    }
36private:
37    std::string mM;
38    PabloE* mExpr;
39};
40
41}
42
43#endif // PS_SETMARKER_H
44
Note: See TracBrowser for help on using the repository browser.