Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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 478 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

References SourceFileAttributesParser().

Here is the call graph for this function:

Member Function Documentation

◆ attributeWarning() [1/2]

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

Definition at line 1766 of file attributes.cpp.

References Rcpp::as(), Rcpp::message(), Rcpp::attributes::showWarning(), and sourceFile_.

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

Here is the call graph for this function:

◆ attributeWarning() [2/2]

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

Definition at line 1784 of file attributes.cpp.

References attributeWarning(), and Rcpp::message().

Here is the call graph for this function:

◆ begin()

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

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 494 of file attributes.cpp.

References attributes_.

Referenced by hasInterface(), and SourceFileAttributesParser().

◆ embeddedR()

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

Definition at line 534 of file attributes.cpp.

References embeddedR_.

◆ end()

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

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 495 of file attributes.cpp.

References attributes_.

Referenced by hasInterface(), and SourceFileAttributesParser().

◆ hasGeneratorOutput()

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

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 506 of file attributes.cpp.

References attributes_, modules_, and roxygenChunks_.

◆ hasInterface()

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

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 513 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 529 of file attributes.cpp.

References hasPackageInit_.

◆ 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 497 of file attributes.cpp.

References modules_.

Referenced by SourceFileAttributesParser().

◆ operator=()

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

References SourceFileAttributesParser().

Here is the call graph for this function:

◆ parseArguments()

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

Definition at line 1652 of file attributes.cpp.

Referenced by parseFunction().

◆ parseAttribute()

◆ 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

Definition at line 1612 of file attributes.cpp.

References lines_, and Rcpp::signature().

Referenced by parseFunction().

Here is the call graph for this function:

◆ parseType()

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

Definition at line 1718 of file attributes.cpp.

References Rcpp::attributes::trimWhitespace().

Referenced by parseFunction().

Here is the call graph for this function:

◆ rcppExportInvalidParameterWarning()

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

Definition at line 1801 of file attributes.cpp.

References rcppExportWarning().

Referenced by parseFunction().

Here is the call graph for this function:

◆ rcppExportNoFunctionFoundWarning()

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

Definition at line 1796 of file attributes.cpp.

References rcppExportWarning().

Referenced by parseFunction().

Here is the call graph for this function:

◆ rcppExportWarning()

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

Definition at line 1790 of file attributes.cpp.

References attributeWarning(), and Rcpp::message().

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

Here is the call graph for this function:

◆ rcppInterfacesWarning()

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

Definition at line 1808 of file attributes.cpp.

References attributeWarning(), and Rcpp::message().

Referenced by parseAttribute().

Here is the call graph for this function:

◆ roxygenChunks()

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

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 502 of file attributes.cpp.

References roxygenChunks_.

◆ sourceDependencies()

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

Definition at line 539 of file attributes.cpp.

References sourceDependencies_.

◆ sourceFile()

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

Implements Rcpp::attributes::SourceFileAttributes.

Definition at line 491 of file attributes.cpp.

References sourceFile_.

Referenced by SourceFileAttributesParser().

Member Data Documentation

◆ attributes_

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

Definition at line 570 of file attributes.cpp.

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

◆ embeddedR_

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

Definition at line 573 of file attributes.cpp.

Referenced by embeddedR(), and SourceFileAttributesParser().

◆ hasPackageInit_

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

Definition at line 572 of file attributes.cpp.

Referenced by hasPackageInit(), and SourceFileAttributesParser().

◆ lines_

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

Definition at line 569 of file attributes.cpp.

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

◆ modules_

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

Definition at line 571 of file attributes.cpp.

Referenced by hasGeneratorOutput(), modules(), and SourceFileAttributesParser().

◆ roxygenBuffer_

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

Definition at line 576 of file attributes.cpp.

Referenced by parseAttribute(), and SourceFileAttributesParser().

◆ roxygenChunks_

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

Definition at line 575 of file attributes.cpp.

Referenced by hasGeneratorOutput(), roxygenChunks(), and SourceFileAttributesParser().

◆ sourceDependencies_

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

Definition at line 574 of file attributes.cpp.

Referenced by sourceDependencies(), and SourceFileAttributesParser().

◆ sourceFile_

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

Definition at line 568 of file attributes.cpp.

Referenced by attributeWarning(), sourceFile(), and SourceFileAttributesParser().


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