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

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

Preliminary steps for removal of superfluous Assigns.

File size: 799 bytes
RevLine 
[3850]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
[4244]10#include <pablo/pabloAST.h>
[3850]11
[4199]12namespace pablo {
13
[4410]14class Not : public Statement {
[4227]15    friend class PabloBlock;
[3850]16public:
[4244]17    static inline bool classof(const PabloAST * e) {
[4200]18        return e->getClassTypeId() == ClassTypeId::Not;
[4199]19    }
[4200]20    static inline bool classof(const void *) {
21        return false;
22    }
[4214]23    virtual ~Not() {
[4199]24    }
[4244]25    PabloAST * getExpr() const {
[4432]26        return getOperand(0);
[4199]27    }
[4200]28protected:
[4438]29    Not(PabloAST * expr, String * name, PabloBlock * parent)
30    : Statement(ClassTypeId::Not, {expr}, name, parent)
31    {
32
33    }
[3850]34};
[4215]35
[4199]36}
37
[3850]38#endif // PE_NOT_H
39
40
Note: See TracBrowser for help on using the repository browser.