## Objects to hold different types of information. These are all
## "dumb" objects containing only fields.
##' @importFrom R6 R6Class
cpp_location <-
R6Class("cpp_location",
public=list(
file=NULL,
line=NULL,
column=NULL))
cpp_arg <-
R6Class("cpp_arg",
public=list(
name=NULL,
type=NULL,
default=NULL,
parent=NULL))
cpp_method <-
R6Class("cpp_method",
public=list(
name=NULL,
return_type=NULL,
args=NULL,
location=NULL,
parent=NULL,
is_constructor=function() is.null(self$return_type)))
cpp_field <-
R6Class("cpp_field",
public=list(
name=NULL,
type=NULL,
location=NULL,
parent=NULL))
## TODO: Worth adding something to indicate if this is a class or a
## struct? defined_as?
cpp_class <-
R6Class("cpp_class",
public=list(
name=NULL,
constructors=NULL,
methods=NULL,
fields=NULL,
template_info=NULL,
location=NULL))
cpp_template_par <-
R6Class("cpp_template_info",
public=list(
name=NULL,
parent=NULL))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.