createInterface: Top-level function for generating code to interface to code...

Description Usage Arguments Author(s) References See Also

View source: R/bindings.R

Description

The idea is that this will be the top-level entry point which a caller can use to generate an interface to a translation unit. This would then generate all the code for interfacing to the code in that translation unit. The results could then be written via writeCode and the resulting C/C++ and R code would be runnable, assuming the availability of the dependencies such as RAutoGenRunTime.

Usage

1
2
createInterface(decls, files = character(0), ...,
                 classes = getClassNodes(decls, files))

Arguments

decls

the translation unit parser object returned from e.g. parseTU which is a vector of the nodes in the tu file.

files

the names of the files (without the directory part) identifying the files in which the definitions of interest are located. This is used to filter our the symbols that are not of interest, e.g. the system level symbols.

...

passed in each call to createClassBindings for each class node.

classes

the TU nodes that correspond to the classes of interest.

Author(s)

Duncan Temple Lang

References

The GCC suite and translation units

See Also

parseTU createClassBindings


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