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.

