2-7
SOM Kernel Quick Reference
string somAllocate (
in long size);
Supports class-specific memory allocation for class instances. Cannot be overridden.
boolean somCheckVersion (
In long majorVersion,
In long minorVersion);
Checks a class for compatibility with the specified major and minor version numbers.
void somClassReady ();
Indicates that a class has been constructed and is ready for normal use.
void somDeallocate (
in string memPtr);
Frees memory originally allocated by the somAllocate method from the same class object. Cannot be overridden.
boolean somDescendedFrom (
in SOMClass clsPtr);
Tests whether a specified class is derived from the receiving class.
boolean somFindMethod (
in somId methodId,
out somMethodPtr m);
Finds the method procedure that implements the indicated method for a class of objects, and indicates whether the
method is a static.
boolean somFindMethodOk (
in somId methodId,
out somMethodPtr m);
As above; but if the method is not supported, this method raises an error and halts execution.
somMethodPtr somFindSMethod (
in somId methodId);
Finds the method procedure for a static method.
somMethodPtr somFindSMethodOk (
in somId methodId);
Like somFindSmethod; but if the desired static method is not supported, an error is raised and execution is halted.
long somGetInstancePartSize ();
Returns the size of the instance variables introduced by a class, in all instances of that class.
long somGetInstanceSize ();
Returns the size of an instance of a class.
somDToken somGetInstanceToken ();
Returns a token for the instance data introduced by a class.
somDToken somGetMemberToken (
long memberOffset,
somDToken instanceToken);
Returns an access token for an instance variable.
Comments to this Manuals