|
Rcpp Version 1.1.2
|

Public Member Functions | |
| virtual | ~ExportsGenerator () |
| const std::string & | targetFile () const |
| const std::string & | package () const |
| const std::string & | packageCpp () const |
| const std::string | packageCppPrefix () const |
| virtual void | writeBegin ()=0 |
| void | writeFunctions (const SourceFileAttributes &attributes, bool verbose) |
| virtual void | writeEnd (bool hasPackageInit)=0 |
| virtual bool | commit (const std::vector< std::string > &includes)=0 |
| bool | remove () |
| operator std::ostream & () | |
Protected Member Functions | |
| 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 |
Private Member Functions | |
| ExportsGenerator (const ExportsGenerator &) | |
| ExportsGenerator & | operator= (const ExportsGenerator &) |
| virtual void | doWriteFunctions (const SourceFileAttributes &attributes, bool verbose)=0 |
| bool | isSafeToOverwrite () const |
| std::string | generatorToken () const |
Private Attributes | |
| std::string | targetFile_ |
| std::string | package_ |
| std::string | packageCpp_ |
| std::string | commentPrefix_ |
| std::string | existingCode_ |
| std::ostringstream | codeStream_ |
| bool | hasCppInterface_ |
Definition at line 591 of file attributes.cpp.
|
protected |
Definition at line 1858 of file attributes.cpp.
References commentPrefix_, existingCode_, Rcpp::exists(), hasCppInterface_, isSafeToOverwrite(), package(), package_, packageCpp_, targetFile(), and targetFile_.
Referenced by Rcpp::attributes::CppExportsGenerator::CppExportsGenerator(), Rcpp::attributes::CppExportsIncludeGenerator::CppExportsIncludeGenerator(), Rcpp::attributes::CppPackageIncludeGenerator::CppPackageIncludeGenerator(), ExportsGenerator(), operator=(), and Rcpp::attributes::RExportsGenerator::RExportsGenerator().

|
private |
|
inlinevirtual |
Definition at line 603 of file attributes.cpp.
|
protected |
Definition at line 1897 of file attributes.cpp.
References codeStream_, commentPrefix_, existingCode_, Rcpp::exists(), generatorToken(), and targetFile_.

|
pure virtual |
Implemented in Rcpp::attributes::CppExportsGenerator, Rcpp::attributes::CppExportsIncludeGenerator, Rcpp::attributes::CppPackageIncludeGenerator, and Rcpp::attributes::RExportsGenerator.
Referenced by Rcpp::attributes::CppExportsGenerator::commit(), Rcpp::attributes::CppExportsIncludeGenerator::commit(), Rcpp::attributes::CppPackageIncludeGenerator::commit(), and Rcpp::attributes::RExportsGenerator::commit().
|
protected |
Definition at line 1942 of file attributes.cpp.
Referenced by Rcpp::attributes::CppExportsIncludeGenerator::CppExportsIncludeGenerator(), and Rcpp::attributes::CppPackageIncludeGenerator::CppPackageIncludeGenerator().
|
privatepure virtual |
|
inlineprotected |
Definition at line 639 of file attributes.cpp.
Referenced by exportValidationFunctionRegisteredName(), and Rcpp::attributes::CppExportsGenerator::writeEnd().
|
inlineprotected |
Definition at line 642 of file attributes.cpp.
References exportValidationFunction(), and packageCppPrefix().
Referenced by Rcpp::attributes::CppExportsIncludeGenerator::writeBegin(), and Rcpp::attributes::CppExportsGenerator::writeEnd().

|
inlineprivate |
Definition at line 673 of file attributes.cpp.
Referenced by commit(), and isSafeToOverwrite().
|
inlineprotected |
Definition at line 634 of file attributes.cpp.
References hasCppInterface_.
Referenced by Rcpp::attributes::CppExportsGenerator::commit(), Rcpp::attributes::CppExportsIncludeGenerator::commit(), Rcpp::attributes::CppPackageIncludeGenerator::commit(), Rcpp::attributes::CppExportsGenerator::writeEnd(), Rcpp::attributes::CppPackageIncludeGenerator::writeEnd(), and Rcpp::attributes::RExportsGenerator::writeEnd().
|
inlineprivate |
Definition at line 666 of file attributes.cpp.
References existingCode_, and generatorToken().
Referenced by ExportsGenerator().

|
inline |
Definition at line 623 of file attributes.cpp.
References codeStream_.
|
private |
|
inlineprotected |
Definition at line 630 of file attributes.cpp.
References codeStream_.
Referenced by Rcpp::attributes::CppExportsGenerator::commit(), Rcpp::attributes::CppExportsIncludeGenerator::commit(), Rcpp::attributes::CppExportsGenerator::doWriteFunctions(), Rcpp::attributes::CppExportsIncludeGenerator::doWriteFunctions(), Rcpp::attributes::RExportsGenerator::doWriteFunctions(), Rcpp::attributes::CppExportsIncludeGenerator::getCCallable(), Rcpp::attributes::CppExportsGenerator::registerCCallable(), Rcpp::attributes::CppExportsIncludeGenerator::writeBegin(), Rcpp::attributes::CppExportsGenerator::writeEnd(), Rcpp::attributes::CppExportsIncludeGenerator::writeEnd(), Rcpp::attributes::CppPackageIncludeGenerator::writeEnd(), and Rcpp::attributes::RExportsGenerator::writeEnd().
|
inline |
Definition at line 607 of file attributes.cpp.
References package_.
Referenced by Rcpp::attributes::CppExportsGenerator::CppExportsGenerator(), Rcpp::attributes::CppExportsIncludeGenerator::CppExportsIncludeGenerator(), Rcpp::attributes::CppPackageIncludeGenerator::CppPackageIncludeGenerator(), Rcpp::attributes::RExportsGenerator::doWriteFunctions(), ExportsGenerator(), Rcpp::attributes::CppExportsIncludeGenerator::getCCallable(), Rcpp::attributes::CppExportsGenerator::registerCCallable(), Rcpp::attributes::RExportsGenerator::RExportsGenerator(), Rcpp::attributes::CppExportsIncludeGenerator::writeBegin(), and Rcpp::attributes::RExportsGenerator::writeEnd().
|
inline |
Definition at line 608 of file attributes.cpp.
References packageCpp_.
Referenced by Rcpp::attributes::CppExportsIncludeGenerator::commit(), Rcpp::attributes::CppExportsIncludeGenerator::getHeaderGuard(), Rcpp::attributes::CppPackageIncludeGenerator::getHeaderGuard(), packageCppPrefix(), Rcpp::attributes::CppExportsIncludeGenerator::writeBegin(), Rcpp::attributes::CppExportsGenerator::writeEnd(), and Rcpp::attributes::CppPackageIncludeGenerator::writeEnd().
|
inline |
Definition at line 609 of file attributes.cpp.
References packageCpp().
Referenced by Rcpp::attributes::CppExportsGenerator::doWriteFunctions(), Rcpp::attributes::CppExportsIncludeGenerator::doWriteFunctions(), Rcpp::attributes::RExportsGenerator::doWriteFunctions(), exportValidationFunctionRegisteredName(), Rcpp::attributes::CppExportsGenerator::registerCCallable(), registerCCallableExportedName(), and Rcpp::attributes::CppExportsGenerator::writeEnd().

|
inlineprotected |
Definition at line 645 of file attributes.cpp.
References packageCppPrefix().
Referenced by Rcpp::attributes::CppExportsGenerator::writeEnd(), and Rcpp::attributes::RExportsGenerator::writeEnd().

| bool Rcpp::attributes::ExportsGenerator::remove | ( | ) |
Definition at line 1937 of file attributes.cpp.
References Rcpp::attributes::removeFile(), and targetFile_.
Referenced by Rcpp::attributes::CppExportsIncludeGenerator::commit(), and Rcpp::attributes::CppPackageIncludeGenerator::commit().

|
inline |
Definition at line 606 of file attributes.cpp.
References targetFile_.
Referenced by ExportsGenerator(), and Rcpp::attributes::CppExportsGenerator::writeEnd().
|
pure virtual |
|
pure virtual |
| void Rcpp::attributes::ExportsGenerator::writeFunctions | ( | const SourceFileAttributes & | attributes, |
| bool | verbose ) |
Definition at line 1884 of file attributes.cpp.
References doWriteFunctions(), hasCppInterface_, and Rcpp::attributes::kInterfaceCpp.

|
private |
Definition at line 683 of file attributes.cpp.
Referenced by commit(), operator std::ostream &(), and ostr().
|
private |
Definition at line 681 of file attributes.cpp.
Referenced by commit(), and ExportsGenerator().
|
private |
Definition at line 682 of file attributes.cpp.
Referenced by commit(), ExportsGenerator(), and isSafeToOverwrite().
|
private |
Definition at line 684 of file attributes.cpp.
Referenced by ExportsGenerator(), hasCppInterface(), and writeFunctions().
|
private |
Definition at line 679 of file attributes.cpp.
Referenced by ExportsGenerator(), and package().
|
private |
Definition at line 680 of file attributes.cpp.
Referenced by ExportsGenerator(), and packageCpp().
|
private |
Definition at line 678 of file attributes.cpp.
Referenced by commit(), ExportsGenerator(), remove(), and targetFile().