Rcpp Version 0.12.12
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
 
const std::vector< std::string > & roxygen () const
 

Private Attributes

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

Detailed Description

Definition at line 309 of file attributes.cpp.

Constructor & Destructor Documentation

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

Definition at line 311 of file attributes.cpp.

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

Member Function Documentation

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

Definition at line 320 of file attributes.cpp.

Referenced by Rcpp::attributes::operator<<().

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

Definition at line 368 of file attributes.cpp.

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

Definition at line 340 of file attributes.cpp.

References Rcpp::attributes::Param::empty().

Here is the call graph for this function:

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

Definition at line 334 of file attributes.cpp.

Referenced by Rcpp::attributes::operator<<().

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

Definition at line 329 of file attributes.cpp.

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

Definition at line 322 of file attributes.cpp.

References function_, name_, params_, and roxygen_.

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

Definition at line 1036 of file attributes.cpp.

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

Definition at line 336 of file attributes.cpp.

Referenced by Rcpp::attributes::operator<<().

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

Definition at line 374 of file attributes.cpp.

References Rcpp::attributes::Param::empty(), Rcpp::attributes::kParamValueTRUE, and Rcpp::attributes::Param::value().

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

Here is the call graph for this function:

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

Member Data Documentation

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

Definition at line 388 of file attributes.cpp.

Referenced by operator==().

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

Definition at line 386 of file attributes.cpp.

Referenced by operator==().

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

Definition at line 387 of file attributes.cpp.

Referenced by operator==().

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

Definition at line 389 of file attributes.cpp.

Referenced by operator==().


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