Ignore:
Timestamp:
Nov 14, 2015, 5:38:36 PM (4 years ago)
Author:
nmedfort
Message:

Bug fix for Multiplexing. Added ability to set the body of a If/While? node after creation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/ps_while.cpp

    r4860 r4870  
    44namespace pablo {
    55
    6 While::While(PabloAST * expr, const std::initializer_list<Next *> nextVars, PabloBlock & body)
     6While::While(PabloAST * expr, const std::initializer_list<Next *> nextVars, PabloBlock * body)
    77: Statement(ClassTypeId::While, {expr}, nullptr)
    88, mBody(body)
     
    1414}
    1515
    16 While::While(PabloAST * expr, const std::vector<Next *> & nextVars, PabloBlock & body)
     16While::While(PabloAST * expr, const std::vector<Next *> & nextVars, PabloBlock * body)
    1717: Statement(ClassTypeId::While, {expr}, nullptr)
    1818, mBody(body)
     
    2424}
    2525
     26PabloBlock * While::setBody(PabloBlock * body) {
     27    body->setParent(mBody->getParent());
     28    std::swap(mBody, body);
     29    body->setParent(nullptr);
     30    return body;
    2631}
     32
     33}
Note: See TracChangeset for help on using the changeset viewer.