source: icGREP/icgrep-devel/icgrep/pablo/pe_scanthru.h @ 4215

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

Removed string based CC lookup in CC Compiler.

File size: 959 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 PS_SCANTHRU_H
8#define PS_SCANTHRU_H
9
10#include <pablo/pe_pabloe.h>
11
12namespace pablo {
13
14class ScanThru : public  PabloE {
15    friend struct CodeGenState;
16public:
17    static inline bool classof(const PabloE * e) {
18        return e->getClassTypeId() == ClassTypeId::ScanThru;
19    }
20    static inline bool classof(const void *) {
21        return false;
22    }
23    ScanThru(PabloE * from, PabloE * thru)
24    : PabloE(ClassTypeId::ScanThru)
25    , mScanFrom(from)
26    , mScanThru(thru)
27    {
28
29    }
30    virtual ~ScanThru() {
31    }
32    PabloE * getScanFrom() const {
33        return mScanFrom;
34    }
35    PabloE * getScanThru() const {
36        return mScanThru;
37    }
38private:
39    PabloE * const mScanFrom;
40    PabloE * const mScanThru;
41};
42
43}
44
45#endif // PS_SCANTHRU_H
46
47
48
Note: See TracBrowser for help on using the repository browser.