2-12
SOMobjects Base Toolkit Quick Reference Guide
void somFree ();
Releases the storage used by an object and frees the object.
SOMClass somGetClass ();
Returns a pointer to an object’s class object.
string somGetClassName ();
Returns the name of the class of an object.
long somGetSize ();
Returns the size of an object.
void somInit ();
Implementors of a class may override this method to initialize instance variables or attributes introduced by the
class.
boolean somIsA (
in SOMClass aClass);
Tests whether the receiving object is an instance of the indicated class or of one of its subclasses.
boolean somIsInstanceOf(
in SOMClass aClass);
Tests whether the receiving object is an instance of the indicated class.
SOMObject somPrintSelf ();
Implementors of a class may override this method to write a brief description of the receiving object. A pointer to the
receiving object is returned as the result of the method call.
boolean somResetObj ( );
Resets an object’s class to its true class after use of the somCastObj method.
boolean somRespondsTo (
in somId methodId);
Tests whether an object can respond to an invocation of the indicated method.
void somUninit ();
Un-initializes the receiving object. Implementors of a class may override this method to free any allocated memory
pointed to by instance data or attributes introduced by the class.
Komentarze do niniejszej Instrukcji