source: icGREP/icgrep-devel/icgrep/re/re_diff.h

Last change on this file was 5267, checked in by nmedfort, 10 months ago

Code clean-up. Removed Pablo Call, SetIthBit? and Prototype.

File size: 761 bytes
Line 
1#ifndef RE_DIFF_H
2#define RE_DIFF_H
3
4#include <re/re_re.h>
5
6namespace re {
7
8class Diff : public RE {
9public:
10    static inline bool classof(const RE * re) {
11        return re->getClassTypeId() == ClassTypeId::Diff;
12    }
13    static inline bool classof(const void *) {
14        return false;
15    }
16    RE * getLH() const {
17        return mLh;
18    }
19    void setLH(RE * lh) {
20        mLh = lh;
21    }
22    RE * getRH() const {
23        return mRh;
24    }
25    void setRH(RE * rh) {
26        mRh = rh;
27    }
28protected:
29    friend RE * makeDiff(RE*, RE*);
30    Diff(RE * lh, RE * rh)
31    : RE(ClassTypeId::Diff)
32    , mLh(lh)
33    , mRh(rh)
34    {
35
36    }
37    virtual ~Diff() {}
38private:
39    RE * mLh;
40    RE * mRh;
41};
42
43RE * makeDiff(RE * lh, RE * rh);
44}
45
46#endif // RE_DIFF_H
Note: See TracBrowser for help on using the repository browser.