MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / toList

Method toList

src/attributes.cpp:3216–3241  ·  view source on GitHub ↗

convert to list

Source from the content-addressed store, hash-verified

3214
3215 // convert to list
3216 Rcpp::List toList() const {
3217 using namespace Rcpp;
3218 List dynlib;
3219 dynlib["cppSourcePath"] = cppSourcePath_;
3220 dynlib["generatedCpp"] = generatedCpp_;
3221 dynlib["cppSourceFilename"] = cppSourceFilename_;
3222 dynlib["contextId"] = contextId_;
3223 dynlib["buildDirectory"] = buildDirectory_;
3224 dynlib["fileSep"] = fileSep_;
3225 dynlib["dynlibFilename"] = dynlibFilename_;
3226 dynlib["previousDynlibFilename"] = previousDynlibFilename_;
3227 dynlib["dynlibExt"] = dynlibExt_;
3228 dynlib["exportedFunctions"] = exportedFunctions_;
3229 dynlib["modules"] = modules_;
3230 dynlib["depends"] = depends_;
3231 dynlib["plugins"] = plugins_;
3232 dynlib["embeddedR"] = embeddedR_;
3233 List sourceDependencies;
3234 for (std::size_t i = 0; i<sourceDependencies_.size(); i++) {
3235 FileInfo fileInfo = sourceDependencies_.at(i);
3236 sourceDependencies.push_back(fileInfo.toList());
3237 }
3238 dynlib["sourceDependencies"] = sourceDependencies;
3239
3240 return dynlib;
3241 }
3242
3243 bool isEmpty() const { return cppSourcePath_.empty(); }
3244

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
atMethod · 0.45
push_backMethod · 0.45
toListMethod · 0.45

Tested by

no test coverage detected