Rcpp Version 1.0.7
Rcpp::attributes::CppExportsIncludeGenerator Class Reference
Inheritance diagram for Rcpp::attributes::CppExportsIncludeGenerator:
Collaboration diagram for Rcpp::attributes::CppExportsIncludeGenerator:

Public Member Functions

 CppExportsIncludeGenerator (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 getCCallable (const std::string &function) const
 
std::string getHeaderGuard () const
 

Private Attributes

std::string includeDir_
 

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 708 of file attributes.cpp.

Constructor & Destructor Documentation

◆ CppExportsIncludeGenerator()

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

Definition at line 2144 of file attributes.cpp.

Member Function Documentation

◆ commit()

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

Implements Rcpp::attributes::ExportsGenerator.

Definition at line 2297 of file attributes.cpp.

◆ doWriteFunctions()

void Rcpp::attributes::CppExportsIncludeGenerator::doWriteFunctions ( const SourceFileAttributes attributes,
bool  verbose 
)
privatevirtual

◆ getCCallable()

std::string Rcpp::attributes::CppExportsIncludeGenerator::getCCallable ( const std::string &  function) const
private

Definition at line 2349 of file attributes.cpp.

Referenced by doWriteFunctions().

◆ getHeaderGuard()

std::string Rcpp::attributes::CppExportsIncludeGenerator::getHeaderGuard ( ) const
private

Definition at line 2358 of file attributes.cpp.

◆ writeBegin()

void Rcpp::attributes::CppExportsIncludeGenerator::writeBegin ( )
virtual

Implements Rcpp::attributes::ExportsGenerator.

Definition at line 2157 of file attributes.cpp.

◆ writeEnd()

void Rcpp::attributes::CppExportsIncludeGenerator::writeEnd ( bool  hasPackageInit)
virtual

Implements Rcpp::attributes::ExportsGenerator.

Definition at line 2291 of file attributes.cpp.

Member Data Documentation

◆ includeDir_

std::string Rcpp::attributes::CppExportsIncludeGenerator::includeDir_
private

Definition at line 725 of file attributes.cpp.


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