source: icGREP/icgrep-devel/icgrep/pablo/pe_pabloe.h @ 4199

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

First stage of refactoring PabloE classes.

File size: 826 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_PABLOE_H
8#define PE_PABLOE_H
9
10namespace pablo {
11
12class PabloE
13{
14public:
15    enum class ClassTypeId : unsigned {
16        Advance
17        , All
18        , And
19        , Call
20        , CharClass
21        , MatchStar
22        , Not
23        , Or
24        , ScanThru
25        , Sel
26        , Var
27        , Xor
28        , Assign
29        , If
30        , While
31    };
32    inline ClassTypeId getClassTypeId() const {
33        return mClassTypeId;
34    }
35    virtual ~PabloE() = 0;
36protected:
37    inline PabloE(const ClassTypeId id)
38    : mClassTypeId(id) {
39
40    }
41private:
42    const ClassTypeId mClassTypeId;
43};
44
45}
46
47#endif // PE_PABLOE_H
48
49
50
Note: See TracBrowser for help on using the repository browser.