| 229 | } |
| 230 | |
| 231 | bool Register(int priority, select_node_ops_t func) |
| 232 | { |
| 233 | for(auto ir = prio_list.begin(); ir != prio_list.end(); ir++) |
| 234 | { |
| 235 | auto prio = ir->first; |
| 236 | |
| 237 | if(prio == priority) |
| 238 | return false; |
| 239 | } |
| 240 | prio_list[priority] = func; |
| 241 | return true; |
| 242 | } |
| 243 | |
| 244 | std::map<int, select_node_ops_t> prio_list; |
| 245 | }; |
no test coverage detected