Skip to content
Snippets Groups Projects

Resolve "hasStateBlocks::registerStateBlocks(ProblemPtr)"

1 unresolved thread

Closes #280 (closed)

Edited by Joan Solà Ortega

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
14 }
15 }
16
17 void HasStateBlocks::removeStateBlocks(ProblemPtr _problem)
18 {
19 for (const char key : getStructure()) // note: key is a char
20 {
21 auto sbp = getStateBlock(key);
22 if (sbp != nullptr)
23 {
24 if (_problem != nullptr)
25 {
26 _problem->notifyStateBlock(sbp,REMOVE);
27 }
28 }
29 removeStateBlock(key);
  • Done. Thanks!

  • Please register or sign in to reply
    Loading