释义 |
1 ?调度表 每个类都包含以下两个必要元素:一个指向父类的指针;一个调度表(dispatch table),该调度表将类的selector与方法的实际内存地址关联起来。 2 [计]?发送表 ... 发送薄 forwarding book 发送表 dispatch table 发送并 xml.sendandload()xml ... 3 ?分发表 ... dispatch process: 分发进程 dispatch table: 分发表 dispatcher: 分发程序,调度器,发报机,分配 ... 4 ?通过改变类的调度表 ...已存在的选择器对应的实现的过程,它依赖于Objectvie-C中方法的调用能够在运行时进改变——通过改变类的调度表(dispatch table)中选择器到最终函数间的映射关系。
- 1
To make the code more easily extensible, use a dispatch table, as shown in Listing 14. 为了使代码更容易扩展,要使用清单14所示的分派表。 - 2
Each of them must be listed in the special dispatch table (this program defines ServiceTable array for this purpose). 每一个服务都必须列于专门的分派表中(为此该程序定义了一个ServiceTable结构数组)。 - 3
In case of services, the code for main will be surprisingly short, since it just creates the dispatch table and starts the control dispatcher. 对于服务程序来说,main的代码令人惊讶地简短,因为它只创建分派表并启动控制分派机。
|