Rcpp Version 1.0.9
Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< void, Args... > Class Template Reference

#include <InternalFunctionWithStdFunction.h>

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

Public Member Functions

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

Private Attributes

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

Detailed Description

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

Definition at line 52 of file InternalFunctionWithStdFunction.h.

Constructor & Destructor Documentation

◆ CppFunctionBaseFromStdFunction()

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

Definition at line 54 of file InternalFunctionWithStdFunction.h.

◆ ~CppFunctionBaseFromStdFunction()

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

Definition at line 55 of file InternalFunctionWithStdFunction.h.

Member Function Documentation

◆ operator()()

template<typename... Args>
SEXP Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< void, 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 57 of file InternalFunctionWithStdFunction.h.

References BEGIN_RCPP, END_RCPP, and Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction< RESULT_TYPE, Args >::fun.

Member Data Documentation

◆ fun

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

Definition at line 64 of file InternalFunctionWithStdFunction.h.


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