Bull DPX/20 Guia do Utilizador Página 107

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 424
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 423 424

Comentários a estes Manuais

Sem comentários