Browse Source

implemented clone for BoundedNaryUntil

tempestpy_adaptions
gereon 12 years ago
parent
commit
55c2d5c03f
  1. 7
      src/formula/BoundedNaryUntil.h

7
src/formula/BoundedNaryUntil.h

@ -163,8 +163,11 @@ public:
result->setLeft(left->clone());
}
if (right != NULL) {
//TODO: implement clone of std::vector
//result->setRight(right->clone());
std::vector<std::tuple<AbstractStateFormula<T>*,T,T>>* newright = new std::vector<std::tuple<AbstractStateFormula<T>*,T,T>>();
for (auto it = this->right->begin(); it != this->right->end(); ++it) {
newright->push_back(std::tuple<AbstractStateFormula<T>*,T,T>(std::get<0>(*it)->clone(), std::get<1>(*it), std::get<2>(*it)));
}
result->setRight(newright);
}
return result;
}

Loading…
Cancel
Save