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

Last change on this file was 6226, checked in by cameron, 7 months ago

Clean-up/refactoring step for REs

File size: 505 bytes
Line 
1#ifndef RE_INTERSECT_H
2#define RE_INTERSECT_H
3
4#include <re/re_re.h>
5
6namespace re {
7
8class Intersect : public RE {
9public:
10    RE * getLH() const {return mLh;}
11    RE * getRH() const {return mRh;}
12    static Intersect * Create(RE * lh, RE * rh) {return new Intersect(lh, rh);}
13    RE_SUBTYPE(Intersect)
14private:
15    Intersect(RE * lh, RE * rh): RE(ClassTypeId::Intersect), mLh(lh), mRh(rh) {}
16    RE * const mLh;
17    RE * const mRh;
18};
19
20RE * makeIntersect(RE * lh, RE * rh);
21
22}
23
24#endif // RE_INTERSECT_H
Note: See TracBrowser for help on using the repository browser.