Rcpp Version 1.0.9
Rcpp::attributes::Attribute Class Reference

Public Member Functions

 Attribute ()
 
 Attribute (const std::string &name, const std::vector< Param > &params, const Function &function, const std::vector< std::string > &roxygen)
 
bool empty () const
 
bool operator== (const Attribute &other) const
 
bool operator!= (const Attribute &other) const
 
const std::string & name () const
 
const std::vector< Param > & params () const
 
Param paramNamed (const std::string &name) const
 
bool hasParameter (const std::string &name) const
 
const Functionfunction () const
 
bool isExportedFunction () const
 
std::string exportedName () const
 
std::string exportedCppName () const
 
bool rng () const
 
bool invisible () const
 
const std::vector< std::string > & roxygen () const
 
std::string customRSignature () const
 

Private Attributes

std::string name_
 
std::vector< Paramparams_
 
Function function_
 
std::vector< std::string > roxygen_
 

Detailed Description

Definition at line 314 of file attributes.cpp.

Constructor & Destructor Documentation

◆ Attribute() [1/2]

Rcpp::attributes::Attribute::Attribute ( )
inline

Definition at line 316 of file attributes.cpp.

◆ Attribute() [2/2]

Rcpp::attributes::Attribute::Attribute ( const std::string &  name,
const std::vector< Param > &  params,
const Function function,
const std::vector< std::string > &  roxygen 
)
inline

Definition at line 317 of file attributes.cpp.

Member Function Documentation

◆ customRSignature()

std::string Rcpp::attributes::Attribute::customRSignature ( ) const
inline

◆ empty()

bool Rcpp::attributes::Attribute::empty ( ) const
inline

Definition at line 325 of file attributes.cpp.

References name().

Referenced by exportedName(), isExportedFunction(), and Rcpp::attributes::operator<<().

Here is the call graph for this function:

◆ exportedCppName()

std::string Rcpp::attributes::Attribute::exportedCppName ( ) const
inline

Definition at line 373 of file attributes.cpp.

References exportedName(), and name().

Here is the call graph for this function:

◆ exportedName()

std::string Rcpp::attributes::Attribute::exportedName ( ) const
inline

◆ function()

const Function& Rcpp::attributes::Attribute::function ( ) const
inline

◆ hasParameter()

bool Rcpp::attributes::Attribute::hasParameter ( const std::string &  name) const
inline

Definition at line 345 of file attributes.cpp.

References Rcpp::attributes::Param::empty(), name(), and paramNamed().

Referenced by Rcpp::attributes::RExportsGenerator::doWriteFunctions(), and exportedName().

Here is the call graph for this function:

◆ invisible()

bool Rcpp::attributes::Attribute::invisible ( ) const
inline

◆ isExportedFunction()

bool Rcpp::attributes::Attribute::isExportedFunction ( ) const
inline

Definition at line 351 of file attributes.cpp.

References empty(), Rcpp::attributes::kExportAttribute, and name().

Referenced by Rcpp::attributes::RExportsGenerator::doWriteFunctions(), and Rcpp::attributes::generateCpp().

Here is the call graph for this function:

◆ name()

const std::string& Rcpp::attributes::Attribute::name ( ) const
inline

◆ operator!=()

bool Rcpp::attributes::Attribute::operator!= ( const Attribute other) const
inline

Definition at line 334 of file attributes.cpp.

◆ operator==()

bool Rcpp::attributes::Attribute::operator== ( const Attribute other) const
inline

Definition at line 327 of file attributes.cpp.

References function_, name_, params_, and roxygen_.

◆ paramNamed()

Param Rcpp::attributes::Attribute::paramNamed ( const std::string &  name) const

Definition at line 1082 of file attributes.cpp.

References name(), and params_.

Referenced by customRSignature(), exportedName(), hasParameter(), invisible(), and rng().

Here is the call graph for this function:

◆ params()

const std::vector<Param>& Rcpp::attributes::Attribute::params ( ) const
inline

Definition at line 341 of file attributes.cpp.

References params_.

Referenced by exportedName(), and Rcpp::attributes::operator<<().

◆ rng()

bool Rcpp::attributes::Attribute::rng ( ) const
inline

◆ roxygen()

const std::vector<std::string>& Rcpp::attributes::Attribute::roxygen ( ) const
inline

Definition at line 397 of file attributes.cpp.

References roxygen_.

Referenced by Rcpp::attributes::RExportsGenerator::doWriteFunctions().

Member Data Documentation

◆ function_

Function Rcpp::attributes::Attribute::function_
private

Definition at line 424 of file attributes.cpp.

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

◆ name_

std::string Rcpp::attributes::Attribute::name_
private

Definition at line 422 of file attributes.cpp.

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

◆ params_

std::vector<Param> Rcpp::attributes::Attribute::params_
private

Definition at line 423 of file attributes.cpp.

Referenced by operator==(), paramNamed(), and params().

◆ roxygen_

std::vector<std::string> Rcpp::attributes::Attribute::roxygen_
private

Definition at line 425 of file attributes.cpp.

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


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