| 56 | CPHCall* CPHCommander::add_call(CPHCondition* condition, CPHAction* action) { return m_calls.emplace_back(std::make_unique<CPHCall>(condition, action)).get(); } |
| 57 | |
| 58 | PHCALL_I CPHCommander::find_call(CPHReqComparerV* cmp_condition, CPHReqComparerV* cmp_action) |
| 59 | { |
| 60 | return std::find_if(m_calls.begin(), m_calls.end(), [&](auto& call) { return !call->isNeedRemove() && call->equal(cmp_condition, cmp_action); }); |
| 61 | } |
| 62 | |
| 63 | bool CPHCommander::has_call(CPHReqComparerV* cmp_condition, CPHReqComparerV* cmp_action) { return find_call(cmp_condition, cmp_action) != m_calls.end(); } |
| 64 |
nothing calls this directly
no test coverage detected