Rcpp Version 0.12.12
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< 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())
 

Detailed Description

Definition at line 657 of file attributes.cpp.

Constructor & Destructor Documentation

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

Definition at line 1857 of file attributes.cpp.

Member Function Documentation

bool Rcpp::attributes::CppExportsGenerator::commit ( const std::vector< std::string > &  includes)
virtual
std::string Rcpp::attributes::CppExportsGenerator::registerCCallable ( size_t  indent,
const std::string &  exportedName,
const std::string &  name 
) const
private
virtual void Rcpp::attributes::CppExportsGenerator::writeBegin ( )
inlinevirtual

Implements Rcpp::attributes::ExportsGenerator.

Definition at line 663 of file attributes.cpp.

Member Data Documentation

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

Definition at line 677 of file attributes.cpp.

Referenced by doWriteFunctions(), and writeEnd().

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

Definition at line 683 of file attributes.cpp.

Referenced by doWriteFunctions(), and writeEnd().

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

Definition at line 680 of file attributes.cpp.

Referenced by doWriteFunctions(), and writeEnd().


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