source: icGREP/icgrep-devel/icgrep/pablo/pe_xor.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: 717 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 XOR_H
8#define XOR_H
9
10#include "pe_pabloe.h"
11
12namespace pablo {
13
14class Xor : public PabloE {
15public:
16    Xor(PabloE * expr1, PabloE * expr2)
17    : PabloE(ClassTypeId::MatchStar)
18    , mExpr1(expr1)
19    , mExpr2(expr2)
20    {
21
22    }
23
24    virtual ~Xor() {
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    }
36private:
37    PabloE* mExpr1;
38    PabloE* mExpr2;
39};
40}
41
42#endif // XOR_H
43
44
45
Note: See TracBrowser for help on using the repository browser.