| 249 | } |
| 250 | |
| 251 | void Node::get_hungry_check_func(int input_idx, |
| 252 | std::vector<std::function<bool()>> &funcs) { |
| 253 | if (hungry_check_func_.count(input_idx)) { |
| 254 | funcs = hungry_check_func_[input_idx]; |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | bool Node::is_hungry() { |
| 259 | if (hungry_check_func_.empty()) { |