externalStorage-class {externalVector} | R Documentation |
The "externalStorage"
class represents the base
class of the storage backend implementation used by the class
"externalVectorWithSToraghe"
. A pointer to the external storage
allocated or accessed by an object of class "externalStorage"
is kept in an external pointer.
A virtual Class: No objects may be created from it.
ptr
:"externalptr"
, keeps the
pointer to the external storage. 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 "externalResource"
, directly.
Signature components for the methods:
resource | The class "externalStorage" |
x | The class "externalStorage" |
ptr | The class "externalptr" |
size | The class "ANY" |
type | The class "ANY" |
resource
. Returns an object of class
"gcAllocator"
. ptr
slot. ptr
slot of resource to ptr
. type
and
length
arguments and coerce the length
argument to
class "integer"
before using them to set the
corresponding slots. Finally a call to callNextMethod
is
made to use the initializer for class "externalResource"
which, via a call to the initializeResource
method above
sets ptr
slot. "logical"
, "integer"
, "numeric"
,
"complex"
, "character"
or "list"
). "externalptr"
stored in the "nativeStorageMethods"
object associated
with a particular subclass of "externalStorage"
and a
basic R vector type.
setExternalStorageClass
for how to set a subclass of
"externalStorage"
.
nativeStorageMethods-class
for the C structure
containing C function pointers for a particular storage methods class.
externalVectorWithStorage-class
for how the
"externalStorage"
class is used.
simpleStorage-class
for a simple implementation of
"externalStorage"
.