Bull DPX/20 Betriebsanweisung Seite 98

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 97
1-86 SOMobjects Base Toolkit: Programmers Reference Manual
somGetInstanceToken Method
Purpose
Returns a data access token for the instance data introduced by a class. Not generally
overridden.
IDL Syntax
somDToken somGetInstanceToken ( );
Note: For backward compatibility, this method does not take an Environment parameter.
Description
Returns a data token “pointing” to the beginning of the instance data introduced by the
receiving class. This token can be passed to the function somDataResolve to locate this
instance data within an an instance of the receiver class or any class derived from it. Also
the instance data token for a class can be passed to the class method
somGetMemberToken to get a data token for a specific instance variables introduced by
the class (if the relative offset of this instance variable is known). This approach is used by
C and C++ implementation bindings to support public instance data for OIDL classes (IDL
classes currently have no public instance data).
A data token for the instance data introduced by a class is required by method procedures
that access data introduced by the method procedure’s defining class. For classes declared
using OIDL and IDL, the needed token is stored in the auxiliary class data structure, which
is an external data structure made statically available by the C and C++ language bindings
as <className>CClassData.instanceToken. Thus, this method call is not generally used by
C and C++ class implementors of classes declared using OIDL or IDL.
Parameters
receiver A pointer to a SOMClass object.
Return Value
Returns a data token for the beginning of the instance data introduced by the receiver.
Original Class
SOMClass
Related Information
Methods: somGetInstanceSize, somGetInstancePartSize, somGetMemberToken
Functions: somDataResolve
Seitenansicht 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare