Rcpp Version 1.0.9
Rcpp::attributes::CppExportsGenerator Class Reference
Inheritance diagram for Rcpp::attributes::CppExportsGenerator:
Collaboration diagram for Rcpp::attributes::CppExportsGenerator:

Public Member Functions

 CppExportsGenerator (const std::string &packageDir, const std::string &package, const std::string &fileSep)
 
virtual void writeBegin ()
 
virtual void writeEnd (bool hasPackageInit)
 
virtual bool commit (const std::vector< std::string > &includes)
 
- Public Member Functions inherited from Rcpp::attributes::ExportsGenerator
virtual ~ExportsGenerator ()
 
const std::string & targetFile () const
 
const std::string & package () const
 
const std::string & packageCpp () const
 
const std::string packageCppPrefix () const
 
void writeFunctions (const SourceFileAttributes &attributes, bool verbose)
 
bool remove ()
 
 operator std::ostream & ()
 

Private Member Functions

virtual void doWriteFunctions (const SourceFileAttributes &attributes, bool verbose)
 
std::string registerCCallable (size_t indent, const std::string &exportedName, const std::string &name) const
 

Private Attributes

std::vector< AttributeinitFunctions_
 
std::vector< AttributecppExports_
 
std::vector< AttributenativeRoutines_
 
std::vector< std::string > modules_
 

Additional Inherited Members

- Protected Member Functions inherited from Rcpp::attributes::ExportsGenerator
 ExportsGenerator (const std::string &targetFile, const std::string &package, const std::string &commentPrefix)
 
std::ostream & ostr ()
 
bool hasCppInterface () const
 
std::string exportValidationFunction ()
 
std::string exportValidationFunctionRegisteredName ()
 
std::string registerCCallableExportedName ()
 
bool commit (const std::string &preamble=std::string())
 
std::string dotNameHelper (const std::string &name) const
 

Detailed Description

Definition at line 696 of file attributes.cpp.

Constructor & Destructor Documentation

◆ CppExportsGenerator()

Rcpp::attributes::CppExportsGenerator::CppExportsGenerator ( const std::string &  packageDir,
const std::string &  package,
const std::string &  fileSep 
)
explicit

Definition at line 1956 of file attributes.cpp.

Member Function Documentation

◆ commit()

bool Rcpp::attributes::CppExportsGenerator::commit ( const std::vector< std::string > &  includes)
virtual

◆ doWriteFunctions()

◆ registerCCallable()

std::string Rcpp::attributes::CppExportsGenerator::registerCCallable ( size_t  indent,
const std::string &  exportedName,
const std::string &  name 
) const
private

◆ writeBegin()

virtual void Rcpp::attributes::CppExportsGenerator::writeBegin ( )
inlinevirtual

Implements Rcpp::attributes::ExportsGenerator.

Definition at line 702 of file attributes.cpp.

◆ writeEnd()

Member Data Documentation

◆ cppExports_

std::vector<Attribute> Rcpp::attributes::CppExportsGenerator::cppExports_
private

Definition at line 719 of file attributes.cpp.

Referenced by doWriteFunctions(), and writeEnd().

◆ initFunctions_

std::vector<Attribute> Rcpp::attributes::CppExportsGenerator::initFunctions_
private

Definition at line 716 of file attributes.cpp.

Referenced by doWriteFunctions(), and writeEnd().

◆ modules_

std::vector<std::string> Rcpp::attributes::CppExportsGenerator::modules_
private

Definition at line 725 of file attributes.cpp.

Referenced by doWriteFunctions(), and writeEnd().

◆ nativeRoutines_

std::vector<Attribute> Rcpp::attributes::CppExportsGenerator::nativeRoutines_
private

Definition at line 722 of file attributes.cpp.

Referenced by doWriteFunctions(), and writeEnd().


The documentation for this class was generated from the following file: