Appendix B: Global Variables — Apps
1217
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
OO_SuperFrame
Declaration:
pFrame
OO_SuperFrame
Category(ies):
Apps
Description:
Immediately after a call to
OO_GetAttr
or
OO_GetAppAttr
to get an object
frame attribute,
OO_SuperFrame
contains a pointer to the parent frame of
the frame from which the attribute was retrieved. This is used to call
inherited methods in an object’s parent hierarchy.
Inputs:
Not applicable.
Outputs:
Not applicable.
Assumptions:
Access_AMS_Global_Variables must be defined.
Side Effects:
Not applicable.
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
Not applicable
Example:
This example uses a hierarchy of three object frames to illustrate how
inherited methods are called. Frame C inherits from B which in turn inherits
from A. Frame A is the base frame.
#include "tiams.h"
/* FDL source:
func 0x10001 foo(pFrame): void;
The FDL compiler generates the following macros given the above source.
*/
#define OO_FOO (65537)
#define foo(obj) \
((void (* const)(pFrame))OO_GetAttr(obj,65537))(obj)
void A_foo(pFrame);
void B_foo(pFrame);
FRAME(A, 0, 0, OO_FOO, 1)
ATTR(OO_FOO, &A_foo)
ENDFRAME
FRAME(B, &A, 0, OO_FOO, 1)
ATTR(OO_FOO, &B_foo)
ENDFRAME
(continued)