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

Public Member Functions

 SourceFileAttributesParser (const std::string &sourceFile, const std::string &packageFile, bool parseDependencies)
 
virtual const std::string & sourceFile () const
 
virtual const_iterator begin () const
 
virtual const_iterator end () const
 
virtual const std::vector< std::string > & modules () const
 
virtual const std::vector< std::vector< std::string > > & roxygenChunks () const
 
virtual bool hasGeneratorOutput () const
 
virtual bool hasInterface (const std::string &name) const
 
bool hasPackageInit () const
 
const std::vector< std::string > & embeddedR () const
 
const std::vector< FileInfo > & sourceDependencies () const
 
- Public Member Functions inherited from Rcpp::attributes::SourceFileAttributes
virtual ~SourceFileAttributes ()
 

Private Member Functions

 SourceFileAttributesParser (const SourceFileAttributesParser &)
 
SourceFileAttributesParseroperator= (const SourceFileAttributesParser &)
 
Attribute parseAttribute (const std::vector< std::string > &match, int lineNumber)
 
std::vector< ParamparseParameters (const std::string &input)
 
Function parseFunction (size_t lineNumber)
 
std::string parseSignature (size_t lineNumber)
 
std::vector< std::string > parseArguments (const std::string &argText)
 
Type parseType (const std::string &text)
 
bool isKnownAttribute (const std::string &name) const
 
void attributeWarning (const std::string &message, const std::string &attribute, size_t lineNumber)
 
void attributeWarning (const std::string &message, size_t lineNumber)
 
void rcppExportWarning (const std::string &message, size_t lineNumber)
 
void rcppExportNoFunctionFoundWarning (size_t lineNumber)
 
void rcppExportInvalidParameterWarning (const std::string &param, size_t lineNumber)
 
void rcppInterfacesWarning (const std::string &message, size_t lineNumber)
 

Private Attributes

std::string sourceFile_
 
CharacterVector lines_
 
std::vector< Attributeattributes_
 
std::vector< std::string > modules_
 
bool hasPackageInit_
 
std::vector< std::string > embeddedR_
 
std::vector< FileInfosourceDependencies_
 
std::vector< std::vector< std::string > > roxygenChunks_
 
std::vector< std::string > roxygenBuffer_
 

Additional Inherited Members

- Public Types inherited from Rcpp::attributes::SourceFileAttributes
typedef std::vector< Attribute >::const_iterator const_iterator
 

Detailed Description

Definition at line 486 of file attributes.cpp.

Constructor & Destructor Documentation

◆ SourceFileAttributesParser() [1/2]

Rcpp::attributes::SourceFileAttributesParser::SourceFileAttributesParser ( const std::string &  sourceFile,
const std::string &  packageFile,
bool  parseDependencies 
)
explicit

◆ SourceFileAttributesParser() [2/2]

Rcpp::attributes::SourceFileAttributesParser::SourceFileAttributesParser ( const SourceFileAttributesParser )
private

Member Function Documentation

◆ attributeWarning() [1/2]

void Rcpp::attributes::SourceFileAttributesParser::attributeWarning ( const std::string &  message,
const std::string &  attribute,
size_t  lineNumber 
)
private

◆ attributeWarning() [2/2]

void Rcpp::attributes::SourceFileAttributesParser::attributeWarning ( const std::string &  message,
size_t  lineNumber 
)
private

◆ begin()

virtual const_iterator Rcpp::attributes::SourceFileAttributesParser::begin ( ) const
inlinevirtual

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 502 of file attributes.cpp.

References attributes_.

Referenced by compileAttributes(), and hasInterface().

◆ embeddedR()

const std::vector<std::string>& Rcpp::attributes::SourceFileAttributesParser::embeddedR ( ) const
inline

Definition at line 542 of file attributes.cpp.

References embeddedR_.

◆ end()

virtual const_iterator Rcpp::attributes::SourceFileAttributesParser::end ( ) const
inlinevirtual

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 503 of file attributes.cpp.

References attributes_.

Referenced by compileAttributes(), and hasInterface().

◆ hasGeneratorOutput()

virtual bool Rcpp::attributes::SourceFileAttributesParser::hasGeneratorOutput ( ) const
inlinevirtual

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 514 of file attributes.cpp.

References attributes_, modules_, and roxygenChunks_.

Referenced by compileAttributes().

◆ hasInterface()

virtual bool Rcpp::attributes::SourceFileAttributesParser::hasInterface ( const std::string &  name) const
inlinevirtual

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 521 of file attributes.cpp.

References begin(), end(), Rcpp::attributes::kInterfaceR, and Rcpp::attributes::kInterfacesAttribute.

Here is the call graph for this function:

◆ hasPackageInit()

bool Rcpp::attributes::SourceFileAttributesParser::hasPackageInit ( ) const
inlinevirtual

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 537 of file attributes.cpp.

References hasPackageInit_.

Referenced by compileAttributes().

◆ isKnownAttribute()

bool Rcpp::attributes::SourceFileAttributesParser::isKnownAttribute ( const std::string &  name) const
private

◆ modules()

virtual const std::vector<std::string>& Rcpp::attributes::SourceFileAttributesParser::modules ( ) const
inlinevirtual

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 505 of file attributes.cpp.

References modules_.

◆ operator=()

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

◆ parseArguments()

std::vector<std::string> Rcpp::attributes::SourceFileAttributesParser::parseArguments ( const std::string &  argText)
private

◆ parseAttribute()

Attribute Rcpp::attributes::SourceFileAttributesParser::parseAttribute ( const std::vector< std::string > &  match,
int  lineNumber 
)
private

◆ parseFunction()

Function Rcpp::attributes::SourceFileAttributesParser::parseFunction ( size_t  lineNumber)
private

◆ parseParameters()

std::vector<Param> Rcpp::attributes::SourceFileAttributesParser::parseParameters ( const std::string &  input)
private

◆ parseSignature()

std::string Rcpp::attributes::SourceFileAttributesParser::parseSignature ( size_t  lineNumber)
private

◆ parseType()

Type Rcpp::attributes::SourceFileAttributesParser::parseType ( const std::string &  text)
private

◆ rcppExportInvalidParameterWarning()

void Rcpp::attributes::SourceFileAttributesParser::rcppExportInvalidParameterWarning ( const std::string &  param,
size_t  lineNumber 
)
private

◆ rcppExportNoFunctionFoundWarning()

void Rcpp::attributes::SourceFileAttributesParser::rcppExportNoFunctionFoundWarning ( size_t  lineNumber)
private

◆ rcppExportWarning()

void Rcpp::attributes::SourceFileAttributesParser::rcppExportWarning ( const std::string &  message,
size_t  lineNumber 
)
private

◆ rcppInterfacesWarning()

void Rcpp::attributes::SourceFileAttributesParser::rcppInterfacesWarning ( const std::string &  message,
size_t  lineNumber 
)
private

◆ roxygenChunks()

virtual const std::vector<std::vector<std::string> >& Rcpp::attributes::SourceFileAttributesParser::roxygenChunks ( ) const
inlinevirtual

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 510 of file attributes.cpp.

References roxygenChunks_.

◆ sourceDependencies()

const std::vector<FileInfo>& Rcpp::attributes::SourceFileAttributesParser::sourceDependencies ( ) const
inline

Definition at line 547 of file attributes.cpp.

References sourceDependencies_.

◆ sourceFile()

virtual const std::string& Rcpp::attributes::SourceFileAttributesParser::sourceFile ( ) const
inlinevirtual

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 499 of file attributes.cpp.

References sourceFile_.

Member Data Documentation

◆ attributes_

std::vector<Attribute> Rcpp::attributes::SourceFileAttributesParser::attributes_
private

Definition at line 578 of file attributes.cpp.

Referenced by begin(), end(), and hasGeneratorOutput().

◆ embeddedR_

std::vector<std::string> Rcpp::attributes::SourceFileAttributesParser::embeddedR_
private

Definition at line 581 of file attributes.cpp.

Referenced by embeddedR().

◆ hasPackageInit_

bool Rcpp::attributes::SourceFileAttributesParser::hasPackageInit_
private

Definition at line 580 of file attributes.cpp.

Referenced by hasPackageInit().

◆ lines_

CharacterVector Rcpp::attributes::SourceFileAttributesParser::lines_
private

Definition at line 577 of file attributes.cpp.

◆ modules_

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

Definition at line 579 of file attributes.cpp.

Referenced by hasGeneratorOutput(), and modules().

◆ roxygenBuffer_

std::vector<std::string> Rcpp::attributes::SourceFileAttributesParser::roxygenBuffer_
private

Definition at line 584 of file attributes.cpp.

◆ roxygenChunks_

std::vector<std::vector<std::string> > Rcpp::attributes::SourceFileAttributesParser::roxygenChunks_
private

Definition at line 583 of file attributes.cpp.

Referenced by hasGeneratorOutput(), and roxygenChunks().

◆ sourceDependencies_

std::vector<FileInfo> Rcpp::attributes::SourceFileAttributesParser::sourceDependencies_
private

Definition at line 582 of file attributes.cpp.

Referenced by sourceDependencies().

◆ sourceFile_

std::string Rcpp::attributes::SourceFileAttributesParser::sourceFile_
private

Definition at line 576 of file attributes.cpp.

Referenced by sourceFile().


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