Method and system for accessing virtual base classes

Boots – shoes – and leggings

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

395683, 3642557, 3642804, 364DIG1, G06F 944, G06F 1206

Patent

active

057548625

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: 4525780 (1985-06-01), Bratt et al.
patent: 5093914 (1992-03-01), Coplien et al.
patent: 5129083 (1992-07-01), Cutler et al.
Stroustrup, Bjarne; The C++ Programming Language;Addison/Wesley; 1991.
Paul Smith, "Oop with Pascal (Object-Oriented Programming)," EXE, 4(4):18(3), 1989.
Turbo C ++ Programmers Guide, Borland International, Ch. 1, "The Turbo C++ language standard," pp. 102-130, 1990.
Margaret A. Ellis, Bjarne Stroustrup, The Annotated C ++ Reference Manual, Ch. 10, "Derived Classes," Addison-Wesley Publishing Company, New York, 1990, pp. 228-237.
Margaret A. Ellis, Bjarne Stroustrup, The Annotated C ++ Reference Manual, Ch. 10, "Derived Classes," Addison-Wesley Publishing Company, New York, 1990, Table of Contents and pp. 195-237.
Lippman et al, "Pointers to Class Members in C++", USENIX C++ Conference, pp. 305-323, 1988.

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 accessing virtual base classes 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 accessing virtual base classes, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method and system for accessing virtual base classes will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-1864405

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