| 52 | } |
| 53 | |
| 54 | bool AFClassCallBackManager::AddTableCallBack(const uint32_t index, DATA_TABLE_EVENT_FUNCTOR&& cb, const int32_t prio) |
| 55 | { |
| 56 | auto iter = table_call_backs_list_.find(index); |
| 57 | if (iter == table_call_backs_list_.end()) |
| 58 | { |
| 59 | TableCallBacks call_backs; |
| 60 | |
| 61 | call_backs.insert(std::make_pair(prio, std::forward<DATA_TABLE_EVENT_FUNCTOR>(cb))); |
| 62 | table_call_backs_list_.insert(std::make_pair(index, call_backs)); |
| 63 | } |
| 64 | else |
| 65 | { |
| 66 | iter->second.insert(std::make_pair(prio, std::forward<DATA_TABLE_EVENT_FUNCTOR>(cb))); |
| 67 | } |
| 68 | |
| 69 | return true; |
| 70 | } |
| 71 | |
| 72 | bool AFClassCallBackManager::AddContainerCallBack( |
| 73 | const uint32_t index, CONTAINER_EVENT_FUNCTOR&& cb, const int32_t prio) |