R/size_t-class.R

Defines functions as.size_t is.size_t size_t

###
### $Id: size_t-class.R 29 2022-05-30 23:02:22Z proebuck $
###
### Size class.
###


##-----------------------------------------------------------------------------
setClass("size_t",
         contains = "integer",
         prototype = as.integer(0))


##-----------------------------------------------------------------------------
size_t <- function(x) {
    new("size_t", as.integer(x))
}


##-----------------------------------------------------------------------------
is.size_t <- function(object) {
    data.class(object) == "size_t"
}


##-----------------------------------------------------------------------------
as.size_t <- function(object) {
    size_t(object)
}

Try the matlab package in your browser

Any scripts or data that you put into this service are public.

matlab documentation built on July 1, 2024, 5:07 p.m.