SOM Kernel Reference 1-87
somGetMemberToken Method
Purpose
Returns an access token for an instance variable. This is method is not generally
overridden.
IDL Syntax
somDToken somGetMemberToken (
long memberOffset,
somDToken instanceToken);
Note: For backward compatibility, this method does not take an Environment parameter.
Description
The somGetMemberToken method returns an access token for the data member at offset
memberOffset within the block of instance data identified by instanceToken. The returned
token can subsequently be passed to the somDataResolve function to locate the data
member.
Typically, only the code that implements a class declared using OIDL requires access to this
method, and this code is normally provided by implementation bindings. Thus C and C++
programmers do not normally invoke this method.
Parameters
receiver A pointer to a SOMClass object.
memberOffset A 32-bit integer representing the offset of the required data member.
instanceToken A token, obtained from somGetInstanceToken, that identifies the
introduced portion of the class.
Return Value
Returns an access token for the specified data member.
Original Class
SOMClass
Related Information
Methods: somGetInstanceSize, somGetInstancePartSize, somGetInstanceToken
Functions: somDataResolve
Komentáře k této Příručce