Bull DPX/20 Podręcznik Użytkownika Strona 107

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 106
SOM Kernel Reference 1-95
somGetNumMethods Method
Purpose
Returns the number of methods available for a class. Not generally overridden.
IDL Syntax
long somGetNumMethods ( );
Note: For backward compatibility, this method does not take an Environment parameter.
Description
The somGetNumMethods method returns the number of methods currently supported by
the specified class, including inherited methods (both static and dynamic).
The value that the somGetNumMethods method returns is the total number of methods
currently known to the receiving class as being applicable to its instances. This includes
both static and dynamic methods, whether defined in this class or inherited from an
ancestor class.
Parameters
receiver A pointer to the class whose instance method count is desired.
Return Value
The somGetNumMethods method returns the total number of methods that are currently
available for the receiving class.
C Example
#include <animal.h>
main()
{
int numMethods;
AnimalNewClass(Animal_MajorVersion, Animal_MinorVersion);
numMethods = _somGetNumMethods(_Animal);
somPrintf(”Number of methods supported by class: %d\n”,
numMethods);
}
Original Class
SOMClass
Related Information
Methods: somGetNumStaticMethods
Przeglądanie stron 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag