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

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

More memory leak fixes. All known leaks accounted for.

File size: 676 bytes
RevLine 
[3850]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
[4255]10#include <re/re_re.h>
[3850]11
[4194]12namespace re {
13
14class Start : public RE {
[3850]15public:
[4194]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() {}
[3850]26};
27
[4194]28inline Start * makeStart() {
29    return new Start();
30}
31
32}
33
[3850]34#endif // START_H
35
Note: See TracBrowser for help on using the repository browser.