source: icGREP/icgrep-devel/icgrep/pablo/pe_zeroes.h @ 4766

Last change on this file since 4766 was 4683, checked in by cameron, 4 years ago

Use #include <pablo/...> syntax uniformally for all pablo headers

File size: 900 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_ZEROES_H
8#define PE_ZEROES_H
9
10#include <pablo/pabloAST.h>
11#include <pablo/pe_var.h>
12
13namespace pablo {
14
15class Zeroes : public PabloAST {
16    friend class PabloBlock;
17public:
18    static inline bool classof(const PabloAST * expr) {
19        assert (expr);
20        return expr->getClassTypeId() == ClassTypeId::Zeroes;
21    }
22    static inline bool classof(const void *) {
23        return false;
24    }
25    virtual ~Zeroes() {
26    }
27    inline bool operator==(const Zeroes &) const {
28        return true;
29    }
30    virtual bool operator==(const PabloAST & other) const {
31        return isa<Zeroes>(other);
32    }
33protected:
34    Zeroes() : PabloAST(ClassTypeId::Zeroes) { }
35};
36
37}
38
39#endif // PE_ZEROES_H
40
41
Note: See TracBrowser for help on using the repository browser.