首页>
外国专利>
Method for implementing virtual function tables in a compiler for an object-oriented programming language
Method for implementing virtual function tables in a compiler for an object-oriented programming language
展开▼
机译:在面向对象的编程语言的编译器中实现虚拟功能表的方法
展开▼
页面导航
摘要
著录项
相似文献
摘要
A method for a computer compiler for an object-oriented programming language for implementing virtual functions is provided. In preferred embodiments of the present invention, the virtual function table for a class contains a tile table and a plurality of sub-tables. The tile table contains pointers to the sub-tables, and the sub-tables contain pointers to the virtual function members of the class. Each child class shares a sub-table of the parent class when the child class does not override a function in that sub-table. If the child class overrides a function, then the child is allocated its own sub-table. Each virtual function member for a class is identified by a tile table offset and a sub-table offset.
展开▼