source: icGREP/icgrep-devel/icgrep/pablo/pe_not.h @ 4432

Last change on this file since 4432 was 4432, checked in by nmedfort, 5 years ago

Temporary check in.

File size: 735 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_NOT_H
8#define PE_NOT_H
9
10#include <pablo/pabloAST.h>
11
12namespace pablo {
13
14class PabloBlock;
15
16class Not : public Statement {
17    friend class PabloBlock;
18public:
19    static inline bool classof(const PabloAST * e) {
20        return e->getClassTypeId() == ClassTypeId::Not;
21    }
22    static inline bool classof(const void *) {
23        return false;
24    }
25    virtual ~Not() {
26    }
27    PabloAST * getExpr() const {
28        return getOperand(0);
29    }
30protected:
31    Not(PabloAST * expr, PabloBlock * parent);
32};
33
34}
35
36#endif // PE_NOT_H
37
38
Note: See TracBrowser for help on using the repository browser.