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

Last change on this file since 4687 was 4650, checked in by nmedfort, 4 years ago

Partial roll back of Trie structure. Seemed to introduce the potential of generating a cycle in the AST. More analysis is needed here before mixing together multiple Advance DAG traversals.

File size: 770 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 Not : public Statement {
15    friend class PabloBlock;
16public:
17    static inline bool classof(const PabloAST * e) {
18        return e->getClassTypeId() == ClassTypeId::Not;
19    }
20    static inline bool classof(const void *) {
21        return false;
22    }
23    virtual ~Not() {
24    }
25    PabloAST * getExpr() const {
26        return getOperand(0);
27    }
28protected:
29    Not(PabloAST * expr, String * name)
30    : Statement(ClassTypeId::Not, {expr}, name)
31    {
32
33    }
34};
35
36}
37
38#endif // PE_NOT_H
39
40
Note: See TracBrowser for help on using the repository browser.