Rcpp Version 1.0.9
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 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.

Member Function Documentation

◆ arguments()

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

Definition at line 280 of file attributes.cpp.

References arguments_.

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

◆ empty()

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

Definition at line 266 of file attributes.cpp.

References name().

Referenced by 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.

◆ operator==()

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

Definition at line 268 of file attributes.cpp.

References arguments_, name_, and type_.

◆ 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(), and Rcpp::attributes::CppExportsIncludeGenerator::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 1042 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 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(), and operator==().

◆ name_

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

Definition at line 284 of file attributes.cpp.

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

◆ type_

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

Definition at line 283 of file attributes.cpp.

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


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