source: icGREP/icgrep-devel/icgrep/pablo/pe_matchstar.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: 765 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 PE_MATCHSTAR_H
8#define PE_MATCHSTAR_H
9
10#include "pe_pabloe.h"
11
12namespace pablo {
13
14class MatchStar : public PabloE {
15public:
16    MatchStar(PabloE * expr1, PabloE * expr2)
17    : PabloE(ClassTypeId::MatchStar)
18    , mExpr1(expr1)
19    , mExpr2(expr2)
20    {
21
22    }
23
24    virtual ~MatchStar() {
25        delete mExpr1;
26        delete mExpr2;
27    }
28
29    inline PabloE * getExpr1() const {
30        return mExpr1;
31    }
32
33    inline PabloE * getExpr2() const  {
34        return mExpr2;
35    }
36
37private:
38    PabloE* mExpr1;
39    PabloE* mExpr2;
40};
41
42}
43
44#endif // PE_MATCHSTAR_H
45
46
47
Note: See TracBrowser for help on using the repository browser.