source: icGREP/icgrep-devel/icgrep/pablo/pe_xor.h @ 4888

Last change on this file since 4888 was 4886, checked in by nmedfort, 3 years ago

Bug fixes

File size: 972 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 <pablo/pabloAST.h>
11
12namespace pablo {
13
14class Xor : public Variadic {
15    friend class PabloBlock;
16public:
17    static inline bool classof(const PabloAST * e) {
18        return e->getClassTypeId() == ClassTypeId::Xor;
19    }
20    static inline bool classof(const void *) {
21        return false;
22    }
23    virtual ~Xor() { }
24protected:
25    Xor(PabloAST * expr1, PabloAST * expr2, String * name)
26    : Variadic(ClassTypeId::Xor, {expr1, expr2}, name)
27    {
28
29    }
30    Xor(const unsigned reserved, String * name)
31    : Variadic(ClassTypeId::Xor, reserved, name)
32    {
33
34    }
35    template<typename iterator>
36    Xor(iterator begin, iterator end, String * name)
37    : Variadic(ClassTypeId::Xor, begin, end, name) {
38
39    }
40};
41
42}
43
44#endif // XOR_H
45
46
47
Note: See TracBrowser for help on using the repository browser.