Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::attributes::Function Class Reference
Collaboration diagram for Rcpp::attributes::Function:

Public Member Functions

 Function ()
 Function (const Type &type, const std::string &name, const std::vector< Argument > &arguments)
Function renamedTo (const std::string &name) const
std::string signature () const
std::string signature (const std::string &name) const
bool isHidden () const
bool empty () const
bool operator== (const Function &other) const
bool operator!= (const Function &other) const
const Typetype () const
const std::string & name () const
const std::vector< Argument > & arguments () const

Private Attributes

Type type_
std::string name_
std::vector< Argumentarguments_

Detailed Description

Definition at line 245 of file attributes.cpp.

Constructor & Destructor Documentation

◆ Function() [1/2]

Rcpp::attributes::Function::Function ( )
inline

Definition at line 247 of file attributes.cpp.

Referenced by operator!=(), operator==(), and renamedTo().

◆ Function() [2/2]

Rcpp::attributes::Function::Function ( const Type & type,
const std::string & name,
const std::vector< Argument > & arguments )
inline

Definition at line 248 of file attributes.cpp.

References arguments(), arguments_, name(), name_, type(), and type_.

Here is the call graph for this function:

Member Function Documentation

◆ arguments()

const std::vector< Argument > & Rcpp::attributes::Function::arguments ( ) const
inline

◆ empty()

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

Definition at line 266 of file attributes.cpp.

References name().

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

Here is the call graph for this function:

◆ isHidden()

bool Rcpp::attributes::Function::isHidden ( ) const
inline

Definition at line 262 of file attributes.cpp.

References name().

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

Here is the call graph for this function:

◆ name()

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

◆ operator!=()

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

Definition at line 274 of file attributes.cpp.

References Function().

Here is the call graph for this function:

◆ operator==()

bool Rcpp::attributes::Function::operator== ( const Function & other) const
inline

Definition at line 268 of file attributes.cpp.

References arguments_, Function(), name_, and type_.

Here is the call graph for this function:

◆ renamedTo()

Function Rcpp::attributes::Function::renamedTo ( const std::string & name) const
inline

Definition at line 255 of file attributes.cpp.

References arguments(), Function(), name(), and type().

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

Here is the call graph for this function:

◆ signature() [1/2]

std::string Rcpp::attributes::Function::signature ( ) const
inline

Definition at line 259 of file attributes.cpp.

References name(), and signature().

Referenced by signature(), and Rcpp::attributes::CppExportsGenerator::writeEnd().

Here is the call graph for this function:

◆ signature() [2/2]

std::string Rcpp::attributes::Function::signature ( const std::string & name) const

Definition at line 1034 of file attributes.cpp.

References arguments(), name(), and type().

Here is the call graph for this function:

◆ type()

const Type & Rcpp::attributes::Function::type ( ) const
inline

Definition at line 278 of file attributes.cpp.

References type_.

Referenced by Function(), renamedTo(), and signature().

Member Data Documentation

◆ arguments_

std::vector<Argument> Rcpp::attributes::Function::arguments_
private

Definition at line 285 of file attributes.cpp.

Referenced by arguments(), Function(), and operator==().

◆ name_

std::string Rcpp::attributes::Function::name_
private

Definition at line 284 of file attributes.cpp.

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

◆ type_

Type Rcpp::attributes::Function::type_
private

Definition at line 283 of file attributes.cpp.

Referenced by Function(), operator==(), and type().


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