Bull DPX/20 Betriebsanweisung Seite 36

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 35
1-24 SOMobjects Base Toolkit: Programmers Reference Manual
somParentResolve Function
Purpose
Obtains a pointer to a procedure that implements a method, given a list of method tables.
Obsolete but still supported.
Syntax
somMethodPtr somParentResolve (somMethodTabs parentMtab,
somMToken mToken);
Description
The somParentResolve function is used by old, single-parent class binaries to make
parent method calls. The function is obsolete, but is still supported. The
somParentResolve function returns a pointer to the procedure that implements the
specified method. This pointer is selected from the first method table in the parentMtab list.
Parameters
parentMtab A list of parent method tables, the first of which is the method table for the
parent class for which the method is to be resolved. The SOM API specifies
that the list of parent method tables for a given class be stored in the
auxiliary class data structure of the class, in the parentMtab component.
Thus, for the class “XYZ”, the parent method table list is found in location
XYZCClassData.parentMtab. Parent method table lists are available from
class objects by way of the method call somGetPClsMtabs.
mToken The method token for the method to be resolved. The SOM API requires
that if the class “XYZ” introduces the static method “foo”, then the method
token for “foo” is found in the class data structure for “XYZ” (called
XYZClassData) in the structure member named “foo” (that is, at
XYZClassData.foo). Method tokens can also be obtained using the
somGetMethodToken method.
Return Value
A somMethodPtr pointer to the procedure that implements the specified method, selected
from the first method table.
Related Information
Functions: somResolveByName, somResolve, somParentNumResolve,
somClassResolve
Data Structures: somMethodPtr (sombtype.h), somMethodTabs (somapi.h),
somMToken (somapi.h)
Methods: somDispatch, somClassDispatch, somFindMethod, somFindMethodOk,
somGetApplyStub, somGetMethodToken
Macros: SOM_Resolve, SOM_ResolveNoCheck
Seitenansicht 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare