source: icGREP/icgrep-devel/icgrep/ps_if.cpp @ 4133

Last change on this file since 4133 was 3850, checked in by cameron, 5 years ago

icgrep-0.8 distribution

File size: 512 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#include "ps_if.h"
8
9If::If(PabloE* expr, std::list<PabloS*> psl)
10{
11    mExpr = expr;
12    mPSList = psl;
13}
14
15If::~If()
16{
17    delete mExpr;
18    while (!mPSList.empty()) delete mPSList.front(), mPSList.pop_front();
19}
20
21PabloE* If::getExpr()
22{
23    return mExpr;
24}
25
26std::list<PabloS*> If::getPSList()
27{
28    return mPSList;
29}
30
Note: See TracBrowser for help on using the repository browser.