Rcpp Version 0.12.12
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 450 of file attributes.cpp.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 1682 of file attributes.cpp.

References Rcpp::base_env(), Rcpp::attributes::showWarning(), and sourceFile_.

Referenced by attributeWarning(), parseAttribute(), rcppExportWarning(), and rcppInterfacesWarning().

Here is the call graph for this function:

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

Definition at line 1700 of file attributes.cpp.

References attributeWarning().

Here is the call graph for this function:

virtual const_iterator Rcpp::attributes::SourceFileAttributesParser::begin ( ) const
inlinevirtual
const std::vector<std::string>& Rcpp::attributes::SourceFileAttributesParser::embeddedR ( ) const
inline

Definition at line 506 of file attributes.cpp.

Referenced by Rcpp::attributes::isRoxygenCpp().

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

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 478 of file attributes.cpp.

Referenced by compileAttributes().

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

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 501 of file attributes.cpp.

Referenced by compileAttributes().

bool Rcpp::attributes::SourceFileAttributesParser::isKnownAttribute ( const std::string &  name) const
private
virtual const std::vector<std::string>& Rcpp::attributes::SourceFileAttributesParser::modules ( ) const
inlinevirtual
SourceFileAttributesParser& Rcpp::attributes::SourceFileAttributesParser::operator= ( const SourceFileAttributesParser )
private
std::vector< std::string > Rcpp::attributes::SourceFileAttributesParser::parseArguments ( const std::string &  argText)
private

Definition at line 1584 of file attributes.cpp.

Referenced by parseFunction().

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

Definition at line 1393 of file attributes.cpp.

Referenced by parseAttribute().

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

Definition at line 1544 of file attributes.cpp.

References Rcpp::Vector< RTYPE, StoragePolicy >::at(), lines_, and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Referenced by parseFunction().

Here is the call graph for this function:

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

Definition at line 1635 of file attributes.cpp.

References Rcpp::attributes::trimWhitespace().

Referenced by parseFunction().

Here is the call graph for this function:

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

Definition at line 1717 of file attributes.cpp.

References rcppExportWarning().

Referenced by parseFunction().

Here is the call graph for this function:

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

Definition at line 1712 of file attributes.cpp.

References rcppExportWarning().

Referenced by parseFunction().

Here is the call graph for this function:

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

Definition at line 1706 of file attributes.cpp.

References attributeWarning().

Referenced by parseAttribute(), parseFunction(), rcppExportInvalidParameterWarning(), and rcppExportNoFunctionFoundWarning().

Here is the call graph for this function:

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

Definition at line 1724 of file attributes.cpp.

References attributeWarning().

Referenced by parseAttribute().

Here is the call graph for this function:

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

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 474 of file attributes.cpp.

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

Definition at line 511 of file attributes.cpp.

References Rcpp::match().

Referenced by Rcpp::attributes::isRoxygenCpp().

Here is the call graph for this function:

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

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 463 of file attributes.cpp.

Member Data Documentation

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

Definition at line 542 of file attributes.cpp.

Referenced by SourceFileAttributesParser().

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

Definition at line 545 of file attributes.cpp.

Referenced by SourceFileAttributesParser().

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

Definition at line 544 of file attributes.cpp.

Referenced by SourceFileAttributesParser().

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

Definition at line 541 of file attributes.cpp.

Referenced by parseAttribute(), parseSignature(), and SourceFileAttributesParser().

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

Definition at line 543 of file attributes.cpp.

Referenced by SourceFileAttributesParser().

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

Definition at line 548 of file attributes.cpp.

Referenced by parseAttribute(), and SourceFileAttributesParser().

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

Definition at line 547 of file attributes.cpp.

Referenced by SourceFileAttributesParser().

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

Definition at line 546 of file attributes.cpp.

Referenced by SourceFileAttributesParser().

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

Definition at line 540 of file attributes.cpp.

Referenced by attributeWarning(), and SourceFileAttributesParser().


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