Texas Instruments TI89 Developer Guide - Page 1259
OO_GetAttr
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 1259 highlights
Appendix B: Global Variables - Apps 1217 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) TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/1259.png)