The R Project SVN R

Rev

Rev 25118 | Rev 39342 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20332 jmc 1
\name{SClassExtension-class}
2
\docType{class}
3
\alias{SClassExtension-class}
4
\title{Class to Represent Inheritance (Extension) Relations }
25118 hornik 5
\description{  An object from this class represents a single \dQuote{is}
20332 jmc 6
  relationship; lists of these objects are used to represent all the
7
  extensions (superclasses) and subclasses for a given class.  The
8
  object contains information about how the relation is defined and
9
  methods to coerce, test, and replace correspondingly. }
10
\section{Objects from the Class}{
23531 hornik 11
  Objects from this class are generated by \code{\link{setIs}}, both
12
  from direct calls .
20332 jmc 13
}
14
\section{Slots}{
15
  \describe{
25816 jmc 16
    \item{\code{subClass,superClass}:}{The classes being extended:
17
    corresponding to the \code{from}, and \code{to} arguments to \code{\link{setIs}}. }
20332 jmc 18
    \item{\code{package}:}{The package to which that class belongs. }
19
    \item{\code{coerce}:}{A function to carry out the as() computation
20
    implied by the relation.  Note that these functions should
21
    \emph{not} be used directly.  They only deal with the
22
    \code{strict=TRUE} calls to the \code{\link{as}} function, with
23
    the full method constructed from this mechanically. }
24
    \item{\code{test}:}{The function that would test whether the
25
    relation holds.  Except for explicitly specified \code{test}
26
    arguments to \code{\link{setIs}}, this function is trivial. }
27
    \item{\code{replace}:}{The method used to implement \code{as(x,
28
    Class) <- value}.}
29
    \item{\code{simple}:}{A \code{"logical"} flag, \code{TRUE} if this
30
    is a simple relation, either because one class is contained in the
31
    definition of another, or because a class has been explicitly
32
    stated to extend a virtual class.  For simple extensions, the
33
    three methods are generated automatically.}
34
    \item{\code{by}:}{If this relation has been constructed
35
    transitively, the first intermediate class from the subclass. }
36
    \item{\code{dataPart}:}{A \code{"logical"} flag, \code{TRUE} if
37
  the extended class is in fact the data part of the subclass.  In
38
  this case the extended class is a basic class (i.e., a type). }
39
  }
40
}
41
 
42
\section{Methods}{
23531 hornik 43
  No methods defined with class \code{"SClassExtension"} in the
44
  signature.
20332 jmc 45
}
23531 hornik 46
\seealso{
47
  \code{\link{is}},
48
  \code{\link{as}}, and
49
  \code{\link{classRepresentation-class}}.
50
}
20332 jmc 51
\keyword{classes}