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

Last change on this file since 6237 was 6226, checked in by cameron, 8 months ago

Clean-up/refactoring step for REs

File size: 454 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    RE * getLH() const {return mLh;}
11    RE * getRH() const {return mRh;}
12    static Diff * Create(RE * lh, RE * rh) {return new Diff(lh, rh);}
13    RE_SUBTYPE(Diff)
14private:
15    Diff(RE * lh, RE * rh): RE(ClassTypeId::Diff), mLh(lh), mRh(rh) {}
16    RE * const mLh;
17    RE * const mRh;
18};
19
20RE * makeDiff(RE * lh, RE * rh);
21}
22
23#endif // RE_DIFF_H
Note: See TracBrowser for help on using the repository browser.