Ignore:
Timestamp:
Dec 13, 2018, 12:16:02 PM (9 months ago)
Author:
cameron
Message:

Clean-up/refactoring step for REs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_start.h

    r4516 r6226  
    1414class Start : public RE {
    1515public:
    16     static inline bool classof(const RE * re) {
    17         return re->getClassTypeId() == ClassTypeId::Start;
    18     }
    19     static inline bool classof(const void *) {
    20         return false;
    21     }
    22 protected:
    23     friend Start * makeStart();
     16    static Start * Create() {return new Start();}
     17    RE_SUBTYPE(Start)
     18private:
    2419    Start() : RE(ClassTypeId::Start) {}
    25     virtual ~Start() {}
    2620};
    2721
    28 inline Start * makeStart() {
    29     return new Start();
    30 }
     22inline Start * makeStart() {return Start::Create();}
    3123
    3224}
Note: See TracChangeset for help on using the changeset viewer.