source: icGREP/icgrep-devel/icgrep/re/re_start.h

Last change on this file was 4516, checked in by nmedfort, 3 years ago

More memory leak fixes. All known leaks accounted for.

File size: 676 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 START_H
8#define START_H
9
10#include <re/re_re.h>
11
12namespace re {
13
14class Start : public RE {
15public:
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    }
22protected:
23    friend Start * makeStart();
24    Start() : RE(ClassTypeId::Start) {}
25    virtual ~Start() {}
26};
27
28inline Start * makeStart() {
29    return new Start();
30}
31
32}
33
34#endif // START_H
35
Note: See TracBrowser for help on using the repository browser.