simpleStorage-class {externalVector} | R Documentation |
The class "simpleStorage"
is an implementation of
the "externalStorage"
class. The actual storage for the vector
object is contained in an R basic vector referenced through the
ptr
slot.
Objects can be created by calls of the form new("simpleStorage",
type, length)
. See the initialize
method for
"externalStorage"
for details.
ptr
:"externalptr"
, keeps the
R basic vector in the protected field. For "logical"
,
"integer"
, "numeric"
, "complex"
, the address
field of the external pointer also holds a pointer to the data in
the basic R vector. type
:"vector"
, a vector object
of length one representing the type of object stored in the
external storage. Usually one of the basic R vector types. length
:"integer"
, Cached value
for the length of the vector stored in the external storage.
Class "externalStorage"
, directly.
Class "externalResource"
, by class "externalStorage"
.
Signature components for the methods:
resource | The class "simpleStorage" |
Description of the methods:
externalStorage-class
to see details of the super class.
externalVector
to create "externalVector"
objects that use this resource.