genericFunction-class        package:methods        R Documentation

_G_e_n_e_r_i_c _F_u_n_c_t_i_o_n _O_b_j_e_c_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     Generic functions (objects from or extending class
     'genericFunction') are extended function objects, containing
     information used in creating and dispatching methods for this
     function.  They also identify the package associated with the
     function and its methods.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Generic functions are created and assigned by 'setGeneric' or
     'setGroupGeneric' and, indirectly, by 'setMethod'.

     As you might expect 'setGeneric' and 'setGroupGeneric' create
     objects of class '"genericFunction"' and '"groupGenericFunction"'
     respectively.

_S_l_o_t_s:


     '._D_a_t_a': Object of class '"function"', the function definition of
          the generic, usually created automatically as a call to
          'standardGeneric'. 

     '_g_e_n_e_r_i_c': Object of class '"character"', the name of the generic
          function. 

     '_p_a_c_k_a_g_e': Object of class '"character"', the name of the package
          to which the function definition belongs (and _not_
          necessarily where the generic function is stored). If the
          package is not specified explicitly in the call to
          'setGeneric', it is usually the package on which the
          corresponding non-generic function exists. 

     '_g_r_o_u_p': Object of class '"list"', the group or groups to which
          this generic function belongs.  Empty by default. 

     '_v_a_l_u_e_C_l_a_s_s': Object of class '"character"'; if not an empty
          character vector, identifies one or more classes.  It is
          asserted that all methods for this function return objects
          from these class (or from classes that extend them). 

     '_s_i_g_n_a_t_u_r_e': Object of class '"character"', the vector of formal
          argument names that can appear in the signature of methods
          for this generic function.  By default, it is all the formal
          arguments, except for ....  Order matters for efficiency: 
          the most commonly used arguments in specifying methods should
          come first. 

     '_d_e_f_a_u_l_t': Object of class '"OptionalMethods"', the default method
          for this function.  Generated automatically and used to
          initialize method dispatch. 

     '_s_k_e_l_e_t_o_n': Object of class '"call"', a slot used internally in
          method dispatch.  Don't expect to use it directly.

_E_x_t_e_n_d_s:

     Class '"function"', from data part.
      Class '"OptionalMethods"', by class '"function"'.
      Class '"PossibleMethod"', by class '"function"'.

_M_e_t_h_o_d_s:

     Generic function objects are used in the creation and dispatch of
     formal methods; information from the object is used to create
     methods list objects and to merge or update the existing methods
     for this generic.

