* @brief attach a workbranch * @param br ptr (heap memory) * @return id * @note O(1) */
| 107 | * @note O(1) |
| 108 | */ |
| 109 | bid attach(workbranch* br) { |
| 110 | assert(br != nullptr); |
| 111 | branches.emplace_back(br); |
| 112 | cur = branches.begin(); // reset cursor |
| 113 | return bid(br); |
| 114 | } |
| 115 | /** |
| 116 | * @brief attach a supervisor |
| 117 | * @param sp ptr (heap memory) |