DerivedClassCode: Generated code for a derived C++ class implementation with R...

Description Slots Author(s) References

Description

This represents the different pieces of generated code that defines and implements an extensions or derived class of a C++ class which allows the virtual methods to be implemented via R functions.

Slots

className:

the name of the R and C++ class

classDefinition:

the C++ definition of the new class, i.e. the C++ code that lists the fields, methods, inheritance, etc.

rsetClass:

the R code to define the R class

rfieldAccessors:

the R code to access an individual field of an instance of this newly derived class. This provides the method for \[\[ so that obj\[\["x"\]\] retrieves the value of the C++ field named "x". This function knows about the available methods for this class and if there is no match, delegates to an inherited method so that the calls consult the ancestor classes.

rconstructors:

R function(s) to create instances of these objects.

methodNames:

a character vector giving the signatures of the methods and the names corresponding to the internal fields used to store the R functions that act as a method when using individual method fields.

functionNames:
destructor:
RmethodIdRoutine:
methodImplementation:
methodNamesArray:
methodAccessors:
nativeClassConstructors:
ifdef:
callInherited:
sharedMethods:
sharedMethodsDef:
namesMethod:
protectedMethods:

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://www.omegahat.org/RGCCTranslationUnit


omegahat/RGCCTranslationUnit documentation built on May 24, 2019, 1:53 p.m.