发明名称 METHOD AND SYSTEM FOR IMPLEMENTING VIRTUAL FUNCTIONS OF AN INTERFACE
摘要 A method and system for implementing functions in a class that inherits an interface and that inherits an implementing class which implements the interface. A forwarding system adds to the class for each virtual function a forwarding implementation of that virtual function. The forwarding implementation forwards its invocation to the implementation of that the virtual function in the implementing class. The forwarding system implements a special forwarding instruction that specifies the interface and implementing class. A developer of a class that inherits the interface and the implementi ng class inserts the forwarding instruction into the class definition. When the forwarding system encounters such an instruction during compilation of the class definition, the forwarding system provides an implementation of each virtual function of the interface that forwards its invocation to a corresponding virtual function in the implementing class. The forwarding system also forwards virtual functions of any direct or indirect base interface of the interface to the implementing class.
申请公布号 CA2396104(A1) 申请公布日期 2000.08.10
申请号 CA20002396104 申请日期 2000.02.03
申请人 GATES, WILLIAM H., III 发明人 HASHA, RICHARD
分类号 G06F9/42;G06F9/44;G06F9/46;G06T1/00;H04L12/24;H04L12/28;H04L29/08;H05B37/02;(IPC1-7):G06F9/44 主分类号 G06F9/42
代理机构 代理人
主权项
地址