Rcpp Version 1.0.7
Rcpp::attributes::ExportsGenerator Class Referenceabstract
Inheritance diagram for Rcpp::attributes::ExportsGenerator:

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 &)
 
ExportsGeneratoroperator= (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_
 

Detailed Description

Definition at line 578 of file attributes.cpp.

Constructor & Destructor Documentation

◆ ExportsGenerator() [1/2]

Rcpp::attributes::ExportsGenerator::ExportsGenerator ( const std::string &  targetFile,
const std::string &  package,
const std::string &  commentPrefix 
)
protected

Definition at line 1824 of file attributes.cpp.

References Rcpp::exists().

Here is the call graph for this function:

◆ ExportsGenerator() [2/2]

Rcpp::attributes::ExportsGenerator::ExportsGenerator ( const ExportsGenerator )
private

◆ ~ExportsGenerator()

virtual Rcpp::attributes::ExportsGenerator::~ExportsGenerator ( )
inlinevirtual

Definition at line 592 of file attributes.cpp.

References packageCpp().

Here is the call graph for this function:

Member Function Documentation

◆ commit() [1/2]

bool Rcpp::attributes::ExportsGenerator::commit ( const std::string &  preamble = std::string())
protected

Definition at line 1863 of file attributes.cpp.

References targetFile_.

◆ commit() [2/2]

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

◆ dotNameHelper()

std::string Rcpp::attributes::ExportsGenerator::dotNameHelper ( const std::string &  name) const
protected

Definition at line 1908 of file attributes.cpp.

◆ doWriteFunctions()

virtual void Rcpp::attributes::ExportsGenerator::doWriteFunctions ( const SourceFileAttributes attributes,
bool  verbose 
)
privatepure virtual

◆ exportValidationFunction()

std::string Rcpp::attributes::ExportsGenerator::exportValidationFunction ( )
inlineprotected

Definition at line 628 of file attributes.cpp.

References packageCppPrefix().

Referenced by Rcpp::attributes::CppExportsGenerator::writeEnd().

Here is the call graph for this function:

◆ exportValidationFunctionRegisteredName()

std::string Rcpp::attributes::ExportsGenerator::exportValidationFunctionRegisteredName ( )
inlineprotected

Definition at line 631 of file attributes.cpp.

Referenced by Rcpp::attributes::CppExportsGenerator::writeEnd().

◆ generatorToken()

std::string Rcpp::attributes::ExportsGenerator::generatorToken ( ) const
inlineprivate

Definition at line 662 of file attributes.cpp.

◆ hasCppInterface()

bool Rcpp::attributes::ExportsGenerator::hasCppInterface ( ) const
inlineprotected

Definition at line 623 of file attributes.cpp.

◆ isSafeToOverwrite()

bool Rcpp::attributes::ExportsGenerator::isSafeToOverwrite ( ) const
inlineprivate

Definition at line 655 of file attributes.cpp.

◆ operator std::ostream &()

Rcpp::attributes::ExportsGenerator::operator std::ostream & ( )
inline

Definition at line 612 of file attributes.cpp.

References codeStream_.

◆ operator=()

ExportsGenerator& Rcpp::attributes::ExportsGenerator::operator= ( const ExportsGenerator )
private

References targetFile_.

◆ ostr()

◆ package()

const std::string& Rcpp::attributes::ExportsGenerator::package ( ) const
inline

Definition at line 596 of file attributes.cpp.

◆ packageCpp()

const std::string& Rcpp::attributes::ExportsGenerator::packageCpp ( ) const
inline

Definition at line 597 of file attributes.cpp.

Referenced by ~ExportsGenerator().

◆ packageCppPrefix()

const std::string Rcpp::attributes::ExportsGenerator::packageCppPrefix ( ) const
inline

◆ registerCCallableExportedName()

std::string Rcpp::attributes::ExportsGenerator::registerCCallableExportedName ( )
inlineprotected

Definition at line 634 of file attributes.cpp.

Referenced by Rcpp::attributes::CppExportsGenerator::writeEnd().

◆ remove()

bool Rcpp::attributes::ExportsGenerator::remove ( )

Definition at line 1903 of file attributes.cpp.

◆ targetFile()

const std::string& Rcpp::attributes::ExportsGenerator::targetFile ( ) const
inline

Definition at line 595 of file attributes.cpp.

◆ writeBegin()

◆ writeEnd()

virtual void Rcpp::attributes::ExportsGenerator::writeEnd ( bool  hasPackageInit)
pure virtual

◆ writeFunctions()

void Rcpp::attributes::ExportsGenerator::writeFunctions ( const SourceFileAttributes attributes,
bool  verbose 
)

Definition at line 1850 of file attributes.cpp.

Member Data Documentation

◆ codeStream_

std::ostringstream Rcpp::attributes::ExportsGenerator::codeStream_
private

Definition at line 672 of file attributes.cpp.

Referenced by commit(), and operator std::ostream &().

◆ commentPrefix_

std::string Rcpp::attributes::ExportsGenerator::commentPrefix_
private

Definition at line 670 of file attributes.cpp.

◆ existingCode_

std::string Rcpp::attributes::ExportsGenerator::existingCode_
private

Definition at line 671 of file attributes.cpp.

◆ hasCppInterface_

bool Rcpp::attributes::ExportsGenerator::hasCppInterface_
private

Definition at line 673 of file attributes.cpp.

◆ package_

std::string Rcpp::attributes::ExportsGenerator::package_
private

Definition at line 668 of file attributes.cpp.

◆ packageCpp_

std::string Rcpp::attributes::ExportsGenerator::packageCpp_
private

Definition at line 669 of file attributes.cpp.

◆ targetFile_

std::string Rcpp::attributes::ExportsGenerator::targetFile_
private

Definition at line 667 of file attributes.cpp.

Referenced by commit(), and operator=().


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