Rev 23531 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{genericFunction-class}\docType{class}\alias{genericFunction-class}\alias{groupGenericFunction-class}\title{Generic Function Objects }\description{Generic functions (objects from or extending class\code{genericFunction}) are extended function objects,containing information used in creating and dispatching methods forthis function. They also identify the package associated with thefunction and its methods.}\section{Objects from the Class}{Generic functions are created and assigned by\code{\link{setGeneric}} or \code{\link{setGroupGeneric}} and, indirectly, by\code{\link{setMethod}}.As you might expect \code{\link{setGeneric}} and\code{\link{setGroupGeneric}} create objects of class\code{"genericFunction"} and \code{"groupGenericFunction"} respectively.}\section{Slots}{\describe{\item{\code{.Data}:}{Object of class \code{"function"}, thefunction definition of the generic, usually createdautomatically as a call to \code{\link{standardGeneric}}. }\item{\code{generic}:}{Object of class \code{"character"}, thename of the generic function. }\item{\code{package}:}{Object of class \code{"character"}, thename of the package to which the function definition belongs(and \emph{not} necessarily where the generic function isstored). If the package is not specified explicitly in thecall to \code{setGeneric}, it is usually the package on whichthe corresponding non-generic function exists. }\item{\code{group}:}{Object of class \code{"list"}, the group orgroups to which this generic function belongs. Empty by default. }\item{\code{valueClass}:}{Object of class \code{"character"}; ifnot an empty character vector, identifies one or more classes. It isasserted that all methods for this function return objectsfrom these class (or from classes that extend them). }\item{\code{signature}:}{Object of class \code{"character"}, thevector of formal argument names that can appear in thesignature of methods for this generic function. By default,it is all the formal arguments, except for \dots. Ordermatters for efficiency: the most commonly used arguments inspecifying methods should come first. }\item{\code{default}:}{Object of class \code{"OptionalMethods"},the default method for this function. Generatedautomatically and used to initialize method dispatch. }\item{\code{skeleton}:}{Object of class \code{"call"}, a slot usedinternally in method dispatch. Don't expect to use itdirectly.}}}\section{Extends}{Class \code{"function"}, from data part.\crClass \code{"OptionalMethods"}, by class \code{"function"}.\crClass \code{"PossibleMethod"}, by class \code{"function"}.}\section{Methods}{Generic function objects are used in the creation and dispatch offormal methods; information from the object is used to create methodslist objects and to merge or update the existing methods for thisgeneric.}\keyword{classes}