Extensible mechanism for providing safe automatic management of objects
US6230213A · kind A · utility
Assignee
Inventor
Key dates
| Filing date | Mar 17, 1998 |
| Grant date | May 8, 2001 |
| Priority date | — |
| Expiry date | Mar 17, 2018 |
Classification
- Technology area (CPC Y)Emerging Cross-Sectional Technologies
- CPC primaryY10S707/99945
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
Disclosed is an object-oriented programming mechanism to control and manage object ownership by more than one reference. According to that mechanism, an envelope class is created in a manner that makes itself look (to the user) like the actual object. The envelope class is then used to create an envelope object that references the actual object, and used as a base for all other references to the actual object to which the object reference relates. The envelope object keeps track of how many references are made to the underlying object by maintaining a reference count that is incremented with each reference to the object that is established, and decremented each time a reference is deleted or goes out of scope. The object reference will keep the object viable (i.e., maintain its memory space) until the last reference to the object goes out of scope. When this happens, the envelope object will then call upon one or more virtual member functions to destroy the object and free the memory space it was using.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.