1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
### =========================================================================
### The start(), end(), width(), and pos() generic getters and setters
### -------------------------------------------------------------------------
###
### Note that stats::start and stats::end are S3 generics.
###
setGeneric("start")
setGeneric("start<-", signature="x",
function(x, ..., value) standardGeneric("start<-")
)
setGeneric("end")
setGeneric("end<-", signature="x",
function(x, ..., value) standardGeneric("end<-")
)
setGeneric("width", function(x) standardGeneric("width"))
setGeneric("width<-", signature="x",
function(x, ..., value) standardGeneric("width<-")
)
### No pos() setter for now.
setGeneric("pos", function(x) standardGeneric("pos"))
|