source: icGREP/icgrep-devel/icgrep/ps_while.cpp @ 3994

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

icgrep-0.8 distribution

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