source: icGREP/icgrep-devel/icgrep/pablo/ps_while.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: 980 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_WHILE_H
8#define PS_WHILE_H
9
10#include <pablo/pe_pabloe.h>
11#include <vector>
12
13namespace pablo {
14
15class While : public PabloE {
16    friend struct CodeGenState;
17public:
18    static inline bool classof(const PabloE * e) {
19        return e->getClassTypeId() == ClassTypeId::While;
20    }
21    static inline bool classof(const void *) {
22        return false;
23    }
24    virtual ~While() {
25    }
26    inline PabloE * getCondition() const {
27        return mExpr;
28    }
29    inline const ExpressionList & getPSList() const {
30        return mPSList;
31    }
32protected:
33    While(PabloE * expr, ExpressionList && psl)
34    : PabloE(ClassTypeId::While)
35    , mExpr(expr)
36    , mPSList(psl)
37    {
38
39    }
40private:
41    PabloE * const  mExpr;
42    ExpressionList  mPSList;
43};
44
45}
46
47#endif // PS_WHILE_H
48
49
Note: See TracBrowser for help on using the repository browser.