| Line 1... |
Line 1... |
| 1 |
\name{genericFunction-class}
|
1 |
\name{genericFunction-class}
|
| 2 |
\docType{class}
|
2 |
\docType{class}
|
| 3 |
\alias{genericFunction-class}
|
3 |
\alias{genericFunction-class}
|
| 4 |
\alias{groupGenericFunction-class}
|
4 |
\alias{groupGenericFunction-class}
|
| 5 |
\title{Generic Function Objects }
|
5 |
\title{Generic Function Objects }
|
| - |
|
6 |
\description{
|
| 6 |
\description{ Generic functions (objects from or extending class
|
7 |
Generic functions (objects from or extending class
|
| 7 |
\code{genericFunction}) are extended function objects,
|
8 |
\code{genericFunction}) are extended function objects,
|
| 8 |
containing information used in creating and dispatching methods for
|
9 |
containing information used in creating and dispatching methods for
|
| 9 |
this function. They also identify the package associated with the
|
10 |
this function. They also identify the package associated with the
|
| 10 |
function and its methods.}
|
11 |
function and its methods.
|
| - |
|
12 |
}
|
| 11 |
\section{Objects from the Class}{
|
13 |
\section{Objects from the Class}{
|
| 12 |
Generic functions are created and assigned by
|
14 |
Generic functions are created and assigned by
|
| 13 |
\code{\link{setGeneric}} or \code{\link{setGroupGeneric}} and, indirectly, by
|
15 |
\code{\link{setGeneric}} or \code{\link{setGroupGeneric}} and, indirectly, by
|
| 14 |
\code{\link{setMethod}}.
|
16 |
\code{\link{setMethod}}.
|
| 15 |
|
17 |
|
| 16 |
As you might expect \code{\link{setGeneric}} and
|
18 |
As you might expect \code{\link{setGeneric}} and
|
| 17 |
\code{\link{setGroupGeneric}} create objects of class
|
19 |
\code{\link{setGroupGeneric}} create objects of class
|
| 18 |
\code{"genericFunction"} and \code{"groupGenericFunction"} respectively.
|
20 |
\code{"genericFunction"} and \code{"groupGenericFunction"} respectively.
|
| 19 |
|
- |
|
| 20 |
|
- |
|
| 21 |
}
|
21 |
}
|
| 22 |
\section{Slots}{
|
22 |
\section{Slots}{
|
| 23 |
\describe{
|
23 |
\describe{
|
| 24 |
\item{\code{.Data}:}{Object of class \code{"function"}, the
|
24 |
\item{\code{.Data}:}{Object of class \code{"function"}, the
|
| 25 |
function definition of the generic, usually created
|
25 |
function definition of the generic, usually created
|
| Line 51... |
Line 51... |
| 51 |
internally in method dispatch. Don't expect to use it
|
51 |
internally in method dispatch. Don't expect to use it
|
| 52 |
directly.}
|
52 |
directly.}
|
| 53 |
}
|
53 |
}
|
| 54 |
}
|
54 |
}
|
| 55 |
\section{Extends}{
|
55 |
\section{Extends}{
|
| 56 |
Class \code{"function"}, from data part.
|
56 |
Class \code{"function"}, from data part.\cr
|
| 57 |
Class \code{"OptionalMethods"}, by class "function".
|
57 |
Class \code{"OptionalMethods"}, by class "function".\cr
|
| 58 |
Class \code{"PossibleMethod"}, by class "function".
|
58 |
Class \code{"PossibleMethod"}, by class "function".
|
| 59 |
}
|
59 |
}
|
| 60 |
\section{Methods}{
|
60 |
\section{Methods}{
|
| 61 |
Generic function objects are used in the creation and dispatch of formal methods;
|
61 |
Generic function objects are used in the creation and dispatch of
|
| 62 |
information from the object is used to create methods list objects and
|
62 |
formal methods; information from the object is used to create methods
|
| 63 |
to merge or update the existing methods for this generic.
|
63 |
list objects and to merge or update the existing methods for this
|
| - |
|
64 |
generic.
|
| 64 |
}
|
65 |
}
|
| 65 |
\keyword{classes}
|
66 |
\keyword{classes}
|