Jump to content

SomGetMemberToken: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:somGetMemberToken}} This method returns an access token for an instance variable. This method is not generally overridden. For backward compatibility, this met..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 4: Line 4:
For backward compatibility, this method does not take an Environment parameter.
For backward compatibility, this method does not take an Environment parameter.


; Original Class : [[SOMClass]]
;Original Class : [[SOMClass]]


==Syntax==
==Syntax==
<PRE>
somDToken somGetMemberToken (SOMClass receiver,
somDToken somGetMemberToken (SOMClass receiver,
                              long memberOffset,
long memberOffset,
                              somDToken instanceToken)
somDToken instanceToken)
</PRE>


==Parameters==
==Parameters==
; receiver (SOMClass) : A pointer to a SOMClass object.  
;receiver (SOMClass) : A pointer to a SOMClass object.
 
;memberOffset (long) : A 32-bit integer representing the offset of the required data member.
; memberOffset (long) : A 32-bit integer representing the offset of the required data member.  
;instanceToken (somDToken) : A token, obtained from somGetInstanceToken, that identifies the introduced portion of the class.
 
; instanceToken (somDToken) : A token, obtained from somGetInstanceToken, that identifies the introduced portion of the class.


==Return Code==
==Return Code==
; rc (somDToken) : Returns an access token for the specified data member.
;rc (somDToken) : Returns an access token for the specified data member.


==Remarks==
==Remarks==
This method returns an access token for the data member at offset memberOffset within the block of instance data identified by instance token. The returned token can subsequently be passed to the somDataResolve function to locate the data member.
This method returns an access token for the data member at offset memberOffset within the block of instance data identified by instance token. 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.  
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.
 
==Example Code==
<PRE>
</PRE>


==Related==
==Related==
===Functions===
;Functions
* [[somDataResolve]]
* [[somDataResolve]]
===Methods===
;Methods
* [[somGetInstanceSize]]
* [[somGetInstanceSize]]
* [[somGetInstancePartSize]]
* [[somGetInstancePartSize]]

Latest revision as of 18:18, 5 April 2025

This method returns an access token for an instance variable. This method is not generally overridden.

For backward compatibility, this method does not take an Environment parameter.

Original Class
SOMClass

Syntax

somDToken somGetMemberToken (SOMClass receiver,
                             long memberOffset,
                             somDToken instanceToken)

Parameters

receiver (SOMClass)
A pointer to a SOMClass object.
memberOffset (long)
A 32-bit integer representing the offset of the required data member.
instanceToken (somDToken)
A token, obtained from somGetInstanceToken, that identifies the introduced portion of the class.

Return Code

rc (somDToken)
Returns an access token for the specified data member.

Remarks

This method returns an access token for the data member at offset memberOffset within the block of instance data identified by instance token. 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.

Related

Functions
Methods