valueOf: Get the contents of a reference object

View source: R/runTime.R

valueOfR Documentation

Get the contents of a reference object

Description

This function (AFAIR) is for dereferencing or retrieving the contents of an external pointer. This is a generic equivalent of as(ref, "RefererenceType") where the caller has to know the name of ReferenceType. This is also equivalent in C to *ref.

Usage

valueOf(obj)

Arguments

obj

the reference object

Details

When (programmatically) generating an interface to native data structures, a method should be provided for this generic fnction.

Value

An R object representing the contents of the reference object.

Author(s)

Duncan Temple Lang

See Also

RGCCTranslationUnit package


omegahat/RAutoGenRunTime documentation built on Jan. 12, 2023, 9:19 p.m.