Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< RESULT_TYPE, Args > Class Template Reference

#include <InternalFunctionWithStdFunction.h>

Inheritance diagram for Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< RESULT_TYPE, Args >:
Collaboration diagram for Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< RESULT_TYPE, Args >:

Public Member Functions

 CppFunctionBaseFromStdFunction (const std::function< RESULT_TYPE(Args...)> &fun)
virtual ~CppFunctionBaseFromStdFunction ()
SEXP operator() (SEXP *args)
Public Member Functions inherited from Rcpp::CppFunctionBase
 CppFunctionBase ()
virtual ~CppFunctionBase ()

Private Attributes

const std::function< RESULT_TYPE(Args...)> fun

Detailed Description

template<typename RESULT_TYPE, typename... Args>
class Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< RESULT_TYPE, Args >

Definition at line 33 of file InternalFunctionWithStdFunction.h.

Constructor & Destructor Documentation

◆ CppFunctionBaseFromStdFunction()

template<typename RESULT_TYPE, typename... Args>
Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< RESULT_TYPE, Args >::CppFunctionBaseFromStdFunction ( const std::function< RESULT_TYPE(Args...)> & fun)
inline

Definition at line 35 of file InternalFunctionWithStdFunction.h.

References fun.

◆ ~CppFunctionBaseFromStdFunction()

template<typename RESULT_TYPE, typename... Args>
virtual Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< RESULT_TYPE, Args >::~CppFunctionBaseFromStdFunction ( )
inlinevirtual

Definition at line 36 of file InternalFunctionWithStdFunction.h.

Member Function Documentation

◆ operator()()

template<typename RESULT_TYPE, typename... Args>
SEXP Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< RESULT_TYPE, Args >::operator() ( SEXP * )
inlinevirtual

modules call the function with this interface. input: an array of SEXP output: a SEXP.

Reimplemented from Rcpp::CppFunctionBase.

Definition at line 38 of file InternalFunctionWithStdFunction.h.

References BEGIN_RCPP, END_RCPP, and fun.

Member Data Documentation

◆ fun

template<typename RESULT_TYPE, typename... Args>
const std::function<RESULT_TYPE(Args...)> Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< RESULT_TYPE, Args >::fun
private

Definition at line 45 of file InternalFunctionWithStdFunction.h.

Referenced by CppFunctionBaseFromStdFunction(), and operator()().


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