| 35 | } |
| 36 | |
| 37 | bool AFClassCallBackManager::AddDataCallBack(const uint32_t index, DATA_NODE_EVENT_FUNCTOR&& cb, const int32_t prio) |
| 38 | { |
| 39 | auto iter = data_call_backs_list_.find(index); |
| 40 | if (iter == data_call_backs_list_.end()) |
| 41 | { |
| 42 | NodeCallBacks call_backs; |
| 43 | call_backs.insert(std::make_pair(prio, std::forward<DATA_NODE_EVENT_FUNCTOR>(cb))); |
| 44 | data_call_backs_list_.insert(std::make_pair(index, call_backs)); |
| 45 | } |
| 46 | else |
| 47 | { |
| 48 | iter->second.insert(std::make_pair(prio, std::forward<DATA_NODE_EVENT_FUNCTOR>(cb))); |
| 49 | } |
| 50 | |
| 51 | return true; |
| 52 | } |
| 53 | |
| 54 | bool AFClassCallBackManager::AddTableCallBack(const uint32_t index, DATA_TABLE_EVENT_FUNCTOR&& cb, const int32_t prio) |
| 55 | { |
no test coverage detected