@@ -20,7 +20,7 @@ nodeInstr_nClass <- nClass(
2020 methodInstr = ' integerVector' ,
2121 indsInstrVec = " nList('integerVector')"
2222 ),
23- predefined = quote(system.file(file.path(" include" ," nCompiler" , " predefined_nClasses " ), package = " nCompiler" ) | >
23+ predefined = quote(system.file(file.path(" include" ," nCompiler" , " predef " ), package = " nCompiler" ) | >
2424 file.path(" nodeInstr_nClass" )),
2525 compileInfo = list (interface = " full" ,
2626 createFromR = TRUE # ,
@@ -34,7 +34,7 @@ calcInstr_nClass <- nClass(
3434 nodeIndex = ' integerScalar' ,
3535 nodeInstrVec = " nList('nodeInstr_nClass')"
3636 ),
37- predefined = quote(system.file(file.path(" include" ," nCompiler" , " predefined_nClasses " ), package = " nCompiler" ) | >
37+ predefined = quote(system.file(file.path(" include" ," nCompiler" , " predef " ), package = " nCompiler" ) | >
3838 file.path(" calcInstr_nClass" )),
3939 compileInfo = list (interface = " full" ,
4040 createFromR = TRUE ,
@@ -43,13 +43,13 @@ calcInstr_nClass <- nClass(
4343 )
4444)
4545
46- calcInstrList_nClass <- nClass(
47- classname = " calcInstrList_nClass " ,
46+ calcInstrList_nC <- nClass(
47+ classname = " calcInstrList_nC " ,
4848 Cpublic = list (
4949 calcInstrList = " nList('calcInstr_nClass')"
5050 ),
51- predefined = quote(system.file(file.path(" include" ," nCompiler" , " predefined_nClasses " ), package = " nCompiler" ) | >
52- file.path(" calcInstrList_nClass " )),
51+ predefined = quote(system.file(file.path(" include" ," nCompiler" , " predef " ), package = " nCompiler" ) | >
52+ file.path(" calcInstrList_nC " )),
5353 compileInfo = list (interface = " full" ,
5454 createFromR = TRUE ,
5555 Hincludes = " <calcInstr_nClass_c_.h>" )
@@ -71,7 +71,7 @@ nodeFxnBase_nClass <- nClass(
7171 ),
7272 # We haven't dealt with ensuring a virtual destructor when any method is virtual
7373 # For now I did it manually by editing the .h and .cpp
74- predefined = quote(system.file(file.path(" include" ," nCompiler" , " predefined_nClasses " ), package = " nCompiler" ) | >
74+ predefined = quote(system.file(file.path(" include" ," nCompiler" , " predef " ), package = " nCompiler" ) | >
7575 file.path(" nodeFxnBase_nClass" )),
7676 compileInfo = list (interface = " full" ,
7777 createFromR = FALSE )
@@ -92,17 +92,17 @@ modelBase_nClass <- nClass(
9292 function (calcInstrList ) {cat(" In uncompiled calculate\n " )},
9393 returnType = ' numericScalar' ,
9494 compileInfo = list (
95- C_fun = function (calcInstrList = ' calcInstrList_nClass ' ) {
95+ C_fun = function (calcInstrList = ' calcInstrList_nC ' ) {
9696 cppLiteral(' Rprintf("modelBase_nClass calculate (should not see this)\\ n");' ); return (0 )},
9797 virtual = TRUE
9898 )
9999 )
100100 ),
101101 # See comment above about needing to ensure a virtual destructor
102- predefined = quote(system.file(file.path(" include" ," nCompiler" , " predefined_nClasses " ), package = " nCompiler" ) | > file.path(" modelBase_nClass" )),
102+ predefined = quote(system.file(file.path(" include" ," nCompiler" , " predef " ), package = " nCompiler" ) | > file.path(" modelBase_nClass" )),
103103 compileInfo = list (interface = " full" ,
104104 createFromR = FALSE ,
105- Hincludes = c(" <nodeFxnBase_nClass_c_.h>" , " <calcInstrList_nClass_c_ .h>" ))
105+ Hincludes = c(" <nodeFxnBase_nClass_c_.h>" , " <calcInstrList_nC_c_ .h>" ))
106106)
107107
108108# nCompile(modelBase_nClass, control=list(generate_predefined=TRUE))
@@ -267,7 +267,7 @@ makeModel_nClass <- function(varInfo,
267267 compileInfo = list (opDefs = OPDEFS ,
268268 nClass_inherit = list (base = BASECLASS )
269269 # inherit = list(base = "public modelClass_<mymodel>"),
270- # Hincludes = "<nCompiler/nClass_interface /post_Rcpp/nCompiler_model_base_devel.h>"
270+ # Hincludes = "<nCompiler/nC_inter /post_Rcpp/nCompiler_model_base_devel.h>"
271271 ),
272272 Cpublic = CPUBLIC
273273 ),
@@ -358,7 +358,7 @@ make_model_from_nimbleModel <- function(m) {
358358 model <- makeModel_nClass(modelVarInfo , nodeInfoList , classname = " my_model" )
359359 # Currently we must compile from here because here is where we know the nodeFxnName[s].
360360 # We have a situation where order matters: model needs to come after the utility classes. Fix me.
361- argList <- list (" modelBase_nClass" , " nodeFxnBase_nClass" , " calcInstrList_nClass " , " calcInstr_nClass" , " nodeInstr_nClass" , " model" )
361+ argList <- list (" modelBase_nClass" , " nodeFxnBase_nClass" , " calcInstrList_nC " , " calcInstr_nClass" , " nodeInstr_nClass" , " model" )
362362 argList <- c(argList , as.list(nodeFxnNames ))
363363 argList <- argList | > lapply(as.name )
364364 Cmodel <- do.call(" nCompile" , argList )
@@ -386,7 +386,7 @@ calcInputList_to_calcInstrList <- function(calcInputList, comp) {
386386 calcInstr $ nodeInstrVec <- nodeInstrVec
387387 calcInstrList [[iCalc ]] <- calcInstr
388388 }
389- calcInstrListObj <- comp $ calcInstrList_nClass $ new()
389+ calcInstrListObj <- comp $ calcInstrList_nC $ new()
390390 calcInstrListObj $ calcInstrList <- calcInstrList
391391 return (calcInstrListObj )
392392}
0 commit comments