Method and system for implementing virtual functions of an...

G - Physics – 06 – F

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

G06F 9/44 (2006.01) G06F 9/42 (2006.01) G06F 9/46 (2006.01) G06T 1/00 (2006.01) H04L 12/28 (2006.01) H05B 37/02 (2006.01)

Patent

CA 2396104

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 implementing 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.

L'invention concerne un procédé et un système permettant de mettre en oeuvre des fonctions dans une classe qui hérite d'une interface et d'une classe de mise en oeuvre qui met en oeuvre cet interface. Un système de retransmission ajoute à la classe, pour chaque fonction virtuelle, une mise en oeuvre de retransmission de cette fonction virtuelle. Cette mise en oeuvre de retransmission retransmet son invocation à la mise en oeuvre de cette fonction virtuelle dans la classe de mise en oeuvre. Le système de retransmission met en oeuvre une instruction spéciale de retransmission qui spécifie l'interface et la classe de mise en oeuvre. Un développeur d'une classe qui hérite de l'interface et de la classe de mise en oeuvre insère l'instruction de retransmission dans la définition de classe. Lorsque le système de retransmission rencontre ce type d'instruction pendant la compilation de la définition de classe, il fournit une mise en oeuvre de chaque fonction virtuelle de l'interface qui retransmet son invocation à une fonction virtuelle correspondante dans la classe de mise en oeuvre. Le système de retransmission retransmet également à la classe de mise en oeuvre des fonctions virtuelles de n'importe quelle interface de base directe ou indirecte de l'interface.

LandOfFree

Say what you really think

Search LandOfFree.com for Canadian inventors and patents. Rate them and share your experience with other people.

Rating

Method and system for implementing virtual functions of an... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Method and system for implementing virtual functions of an..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method and system for implementing virtual functions of an... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFCA-PAI-O-1668012

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.