source: icGREP/icgrep-devel/icgrep/pablo/pe_integer.h @ 4416

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

Many use def info changes; removed dependency on boost system library. More work still needed on CSE.

File size: 675 bytes
Line 
1#ifndef PE_INTEGER_H
2#define PE_INTEGER_H
3
4#include <pablo/pabloAST.h>
5
6namespace pablo {
7
8class Integer : public PabloAST {
9    friend class SymbolGenerator;
10    typedef u_int64_t integer_t;
11    static inline bool classof(const PabloAST * e) {
12        return e->getClassTypeId() == ClassTypeId::Integer;
13    }
14    static inline bool classof(const void *) {
15        return false;
16    }
17    virtual ~Integer(){
18
19    }
20    inline integer_t value() const {
21        return mValue;
22    }
23protected:
24    Integer(const integer_t value) noexcept
25    : PabloAST(ClassTypeId::Integer)
26    , mValue(value)
27    {
28
29    }
30private:
31    const integer_t mValue;
32};
33
34}
35
36#endif // PE_INTEGER_H
Note: See TracBrowser for help on using the repository browser.