Oo_Superframe - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix B: Global Variables — Apps

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
TI-89 / TI-92 Plus Developer Guide
(continued)
Not for Distribution
1217
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents