IP Library Granted Patent US 6,986,144
Granted Patent B2
US 6,986,144 · App. 10/131,703 · Granted Jan 10, 2006

Protected resource access in an object-oriented computing environment

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 6,986,144
App. No.
10/131,703
Granted
Jan 10, 2006
Kind
B2
Abstract

Access is provided in an object-oriented computing environment by an instance of a first class to a selected protected resource of an instance of a second class. This involves defining a third class that includes a protected virtual method for accessing the selected protected resource. The first class is defined as a subclass of the third class such that the first class inherits from the third class an access-resource method for the protected resource and a pointer to an instance of the second class as an implementation of the third class. The second class is defined as a subclass of the third class such that the second class inherits from the third class and implements the protected virtual method for accessing the selected protected resource by overloading that method. With this structure in place, an instance of the first class calls the access-resource method inherited from the third class, which access-resource method uses the pointer to the instance of the second class and the overloaded method to access the resource.

Claims (35)

1. A computer-based process for enabling access in an object-oriented computing environment by an instance of a first class to a selected protected resource of an instance of a second class, the computer-based process comprising:

defining a third class that includes a protected virtual method for accessing the selected protected resource;

defining the first class as a subclass of the third class such that the first class inherits from the third class the protected virtual method for the selected protected resource and a pointer to an instance of the second class;

defining the second class as a subclass of the third class such that the second class inherits from the third class and implements the protected virtual method for accessing the selected protected resource by overloading that method to create an overloaded method; and

calling an access-resource method by an instance of the first class, wherein the access-resource method uses the pointer to the instance of the second class and the overloaded method to access the resource.

2. The computer-based process of claim 1 , wherein the access-resource method of the first class is a public method, and wherein the accessing of the resource by the instance of the first class is initiated in response to a call to the access-resource method of the instance of the first class.

3. The computer-based process of claim 1 , wherein the object-oriented computing environment comprises a C++ computer program language computing environment.

4. The computer-based process of claim 1 , wherein the resource comprises data.

5. The computer-based process of claim 1 , wherein the resource comprises a function.

6. A computer program product comprising a storage medium having embedded thereon computer readable instructions for a process for enabling access in an object-oriented computing environment by an instance of a first class to a selected protected resource of an instance of a second class, the process comprising:

defining a third class that includes a protected virtual method for accessing the selected protected resource;

defining the first class as a subclass of the third class such that the first class inherits from the third class the protected virtual method for the selected protected resource and a pointer to an instance of the second class;

defining the second class as a subclass of the third class such that the second class inherits from the third class and implements the protected virtual method for accessing the selected protected resource by overloading that method to create an overloaded method; and

calling an access-resource method by an instance of the first class, wherein the access-resource method uses the pointer to the instance of the second class and the overloaded method to access the resource.

7. The computer program product of claim 6 wherein the access-resource method of the first class is a public method, and wherein the accessing of the resource by the instance of the first class is initiated in response to a call to the access-resource method of the instance of the first class.

8. The computer program product of claim 6 wherein the object-oriented computing environment comprises a C++ computer program language computing environment.

9. The computer program product of claim 6 wherein the resource comprises data.

10. The computer program product of claim 6 wherein the resource comprises a function.

11. A computer system comprising:

a processor;

a memory coupled to said processor;

program code stored in said memory wherein execution of said program code by said processor result in a process for enabling access in an object-oriented computing environment by an instance of a first class to a selected protected resource of an instance of a second class, the process comprising:

defining a third class that includes a protected virtual method for accessing the selected protected resource;

defining the first class as a subclass of the third class such that the first class inherits from the third class the protected virtual method for the selected protected resource and a pointer to an instance of the second class;

defining the second class as a subclass of the third class such that the second class inherits from the third class and implements the protected virtual method for accessing the selected protected resource by overloading that method to create an overloaded method; and

calling an access-resource method by an instance of the first class, wherein the access-resource method uses the pointer to the instance of the second class and the overloaded method to access the resource.

12. The computer system of claim 11 wherein the access-resource method of the first class is a public method, and wherein the accessing of the resource by the instance of the first class is initiated in response to a call to the access-resource method of the instance of the first class.

13. The computer system of claim 11 wherein the object-oriented computing environment comprises a C++ computer program language computing environment.

14. The computer system of claim 11 wherein the resource comprises data.

15. The computer system of claim 11 wherein the resource comprises a function.

16. A computer system for enabling access in an object-oriented computing environment by an instance of a first class to a selected protected resource of an instance of a second class, the computer system comprising:

means for defining a third class that includes a protected virtual method for accessing the selected protected resource;

means for defining the first class as a subclass of the third class such that the first class inherits from the third class the protected virtual method for the selected protected resource and a pointer to an instance of the second class;

means for defining the second class as a subclass of the third class such that the second class inherits from the third class and implements the protected virtual method for accessing the selected protected resource by overloading that method to create an overloaded method; and

means for calling an access-resource method by an instance of the first class, wherein the access-resource method uses the pointer to the instance of the second class and the overloaded method to access the resource.

Assignments (2)
MERGER AND CHANGE OF NAME Recorded Dec 14, 2015
From: ORACLE USA, INC.; SUN MICROSYSTEMS, INC.; ORACLE AMERICA, INC.
To: ORACLE AMERICA, INC.
Reel/Frame 037280/0188 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 23, 2002
From: KRIVORUCHKO, MICHAEL
To: SUN MICROSYSTEMS, INC.
Reel/Frame 012836/0411 →