Method and system for implementing pointers to members in a comp

Boots – shoes – and leggings

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

364DIG1, 3642831, 395705, G06F 1730

Patent

active

056175698

ABSTRACT:
A method and system in an object-oriented environment for determining the offset of a data member of a derived class when the derived class has a virtually inherited base class and the data member is defined in the base class. In a preferred embodiment, the base class has a data structure and a class address. The base class data structure has the data member located at a data member offset from the base class address. The derived class has a data structure and a class address. The derived class data structure includes an occurrence of the base class data structure. The occurrence of the base class data structure is located at a base class offset from the derived class address. In a preferred embodiment, the base class offset is stored at a memory location, a first field and a second field for a pointer to the data member are allocated, the data member offset is stored in the first field, an indicator of the stored base class offset is stored in the second field, the pointer is dereferenced by retrieving the base class offset using the indicator stored in the second field, retrieving the data member offset from the first field, and adding the retrieved base class offset to the retrieved data member offset to give the offset of the data member within the derived data structure.

REFERENCES:
patent: 5093914 (1992-03-01), Coplien et al.
patent: 5129083 (1992-07-01), Cutler et al.
patent: 5187786 (1993-02-01), Densmore et al.
patent: 5206951 (1993-04-01), Khuyi et al.
patent: 5295256 (1994-03-01), Bapat
patent: 5297279 (1994-03-01), Bannon et al.
patent: 5297284 (1994-03-01), Jones et al.
patent: 5307499 (1994-04-01), Yin
patent: 5361351 (1994-11-01), Lenkov et al.
patent: 5371891 (1994-12-01), Gray et al.
patent: 5432936 (1995-07-01), Gray et al.
patent: 5481708 (1996-01-01), Kukol
USENIX C++ Conference Proceedings, USENIX Association, Washington, D.C., Apr. 22-25, 1991, pp. 1-11.
Ellis, Margaret A., and Bjarne Stroustrup, The Annotated C++ Reference Manual, Addison-Wesey Publishing Company, New York, 1990, pp. 155-161.

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 pointers to members in a comp 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 pointers to members in a comp, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method and system for implementing pointers to members in a comp will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-548065

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