Method and system for implementing virtual functions and virtual

Boots – shoes – and leggings

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

364DIG1, 3642551, 3642558, 3642614, 364DIG2, 3649383, 364955, 3649556, G06F 942

Patent

active

052972844

ABSTRACT:
A method for a computer compiler for an object-oriented programming language for implementing virtual functions and virtual base classes is provided. In preferred embodiments of the present invention, the data structure layout of an object includes a virtual function table pointer, a virtual base table pointer, occurrences of each non-virtual base class, the data members of the class, and occurrences of each virtual base class. If a class introduces a virtual function member and the class has a non-virtual base class with a virtual function table pointer, then the class shares the virtual function table pointer of the non-virtual base class that is first visited in a depth-first, left-to-right traversal of the inheritance tree. In preferred embodiments of the present invention, each instance of a given class shares a set of virtual function tables and virtual base tables for that class. In preferred embodiments, adjusters are used when a function member in a derived class overrides a function member that is defined in more than one base class, and when a derived class has a base class that overrides a function member in a virtual base class of that class and the derived class itself does not override the function member.

REFERENCES:
patent: Re33706 (1991-10-01), Mohri
patent: 5093914 (1992-03-01), Coplien et al.
Borland International, Turbo C.sup.++ Programes Guide pp. 102-130, 1990.
Smith, Paul, OOP with Pascal, EXE, Sep. 1989 v. 4 No. 4 p. 18(3).
Margaret A. Ellis and Bjarne Stroustrup, The Annotated C++ Reference Manual, Addison-Wesley Publishing Company, New York, 1990, Ch. 10, "Derived Classes," pp. 228-237.

LandOfFree

Say what you really think

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

Rating

Method and system for implementing virtual functions and virtual 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 and virtual, 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 and virtual will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-444642

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