source: icGREP/icgrep-devel/icgrep/pablo/pe_and.h @ 4713

Last change on this file since 4713 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: 868 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_AND_H
8#define PE_AND_H
9
[4244]10#include <pablo/pabloAST.h>
[3850]11
[4199]12namespace pablo {
13
[4410]14class And : public Statement {
[4227]15    friend class PabloBlock;
[3850]16public:
[4244]17    static inline bool classof(const PabloAST * e) {
[4200]18        return e->getClassTypeId() == ClassTypeId::And;
[4199]19    }
[4200]20    static inline bool classof(const void *) {
21        return false;
22    }
[4199]23    virtual ~And() {
24    }
[4244]25    PabloAST * getExpr1() const {
[4432]26        return getOperand(0);
[4199]27    }
[4244]28    PabloAST * getExpr2() const {
[4432]29        return getOperand(1);
[4199]30    }
[4200]31protected:
[4650]32    And(PabloAST * expr1, PabloAST * expr2, String * name)
33    : Statement(ClassTypeId::And, {expr1, expr2}, name)
[4438]34    {
35
36    }
[3850]37};
38
[4199]39}
40
[3850]41#endif // PE_AND_H
42
43
Note: See TracBrowser for help on using the repository browser.