feat: refine

This commit is contained in:
LiuBinPeng
2022-05-30 15:03:36 +08:00
parent 6cd0cf5144
commit 55d66cc4c5
15 changed files with 149 additions and 149 deletions

View File

@@ -59,7 +59,7 @@ typedef struct NCTbl {
该表用于存储添加观察者时传了 NotificationName 的情况。也就是 Named Table 中NotificationName 作为 key。在使用系统 API 注册观察者的时候还可以传入 object 参数,表示只监听该对象发出的通知,所以还需要一张表存储 object 和 observer 的对应关系object 为 keyobserver 为 value。
![](./../assets/notification-namedTable.png)
![](https://github.com/FantasticLBP/knowledge-kit/raw/master/assets/notification-namedTable.png)
- 第一个 MapTable key 为 notificationNamevalue 为另一个 MapTable子 Table
@@ -71,7 +71,7 @@ typedef struct NCTbl {
nameless Table 结构较为简单,因为没有 notificationName所以就一层 MapTable。key 为 objectvalue 为链表,存储所有的观察者。
![](./../assets/Notification-namelessTable.png)
![](https://github.com/FantasticLBP/knowledge-kit/raw/master/assets/Notification-namelessTable.png)
### wildcard