This function takes any named object such as an environment, fully-named list, or an Instance
and converts it to an oClass generator function so that instances have
access to the fields in the named object. See oClass for details about the
arguments and functionality of the oClass generator.
as.oClass(
x,
name = NULL,
inherit = NULL,
portable = FALSE,
hash = FALSE,
formals = NULL,
deep = TRUE,
...
)object to be cloned and converted
character string describing the name of the class
oClass used as the parent.env for the generated instances
logical indicating whether all inherited values should be copied into each instance
logical indicating whether instances should use hashing, see new.env
list containing the formal arguments for the resulting generator function. These are passed to the init function when a new instance is created.
logical. Should the object be deep-cloned?
named fields inherited by the class instance
a function of class "ClassGenerator" with attributes describing each generated class instance