| 70 | } |
| 71 | |
| 72 | bool AFClassCallBackManager::AddContainerCallBack( |
| 73 | const uint32_t index, CONTAINER_EVENT_FUNCTOR&& cb, const int32_t prio) |
| 74 | { |
| 75 | auto iter = container_call_backs_list_.find(index); |
| 76 | if (iter == container_call_backs_list_.end()) |
| 77 | { |
| 78 | ContainerCallBacks call_backs; |
| 79 | |
| 80 | call_backs.insert(std::make_pair(prio, std::forward<CONTAINER_EVENT_FUNCTOR>(cb))); |
| 81 | container_call_backs_list_.insert(std::make_pair(index, call_backs)); |
| 82 | } |
| 83 | else |
| 84 | { |
| 85 | iter->second.insert(std::make_pair(prio, std::forward<CONTAINER_EVENT_FUNCTOR>(cb))); |
| 86 | } |
| 87 | |
| 88 | return true; |
| 89 | } |
| 90 | |
| 91 | bool AFClassCallBackManager::AddLeaveSceneEvent(SCENE_EVENT_FUNCTOR&& cb, const int32_t prio) |
| 92 | { |