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

Last change on this file was 5267, checked in by nmedfort, 8 months ago

Code clean-up. Removed Pablo Call, SetIthBit? and Prototype.

File size: 646 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 ANY_H
8#define ANY_H
9
10#include "re_re.h"
11
12namespace re {
13
14class Any : public RE {
15public:
16    static inline bool classof(const RE * re) {
17        return re->getClassTypeId() == ClassTypeId::Any;
18    }
19    static inline bool classof(const void *) {
20        return false;
21    }
22protected:
23    friend Any * makeAny();
24    Any() : RE(ClassTypeId::Any) {}
25    virtual ~Any() {}
26};
27
28inline Any * makeAny() {
29    return new Any();
30}
31
32}
33
34#endif // ANY_H
Note: See TracBrowser for help on using the repository browser.