Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::CppFunctionN< RESULT_TYPE, T > Class Template Reference

#include <Module.h>

Inheritance diagram for Rcpp::CppFunctionN< RESULT_TYPE, T >:
Collaboration diagram for Rcpp::CppFunctionN< RESULT_TYPE, T >:

Public Member Functions

 CppFunctionN (RESULT_TYPE(*fun)(T...), const char *docstring=0)
SEXP operator() (SEXP *args)
int nargs ()
bool is_void ()
void signature (std::string &s, const char *name)
DL_FUNC get_function_ptr ()
Public Member Functions inherited from Rcpp::CppFunction
 CppFunction (const char *doc=0)
virtual ~CppFunction ()
virtual SEXP get_formals ()
Public Member Functions inherited from Rcpp::CppFunctionBase
 CppFunctionBase ()
virtual ~CppFunctionBase ()

Private Attributes

RESULT_TYPE(* ptr_fun )(T...)

Additional Inherited Members

Public Attributes inherited from Rcpp::CppFunction
std::string docstring

Detailed Description

template<typename RESULT_TYPE, typename... T>
class Rcpp::CppFunctionN< RESULT_TYPE, T >

Definition at line 103 of file Module.h.

Constructor & Destructor Documentation

◆ CppFunctionN()

template<typename RESULT_TYPE, typename... T>
Rcpp::CppFunctionN< RESULT_TYPE, T >::CppFunctionN ( RESULT_TYPE(* fun )(T...),
const char * docstring = 0 )
inline

Definition at line 105 of file Module.h.

Member Function Documentation

◆ get_function_ptr()

template<typename RESULT_TYPE, typename... T>
DL_FUNC Rcpp::CppFunctionN< RESULT_TYPE, T >::get_function_ptr ( )
inlinevirtual

The actual function pointer, as a catch all function pointer (see Rdynload.h for definition of DL_FUNC)

Implements Rcpp::CppFunction.

Definition at line 116 of file Module.h.

References ptr_fun.

◆ is_void()

template<typename RESULT_TYPE, typename... T>
bool Rcpp::CppFunctionN< RESULT_TYPE, T >::is_void ( )
inlinevirtual

voidness

Reimplemented from Rcpp::CppFunction.

Definition at line 114 of file Module.h.

◆ nargs()

template<typename RESULT_TYPE, typename... T>
int Rcpp::CppFunctionN< RESULT_TYPE, T >::nargs ( )
inlinevirtual

The number of arguments of the function

Reimplemented from Rcpp::CppFunction.

Definition at line 113 of file Module.h.

◆ operator()()

template<typename RESULT_TYPE, typename... T>
SEXP Rcpp::CppFunctionN< RESULT_TYPE, T >::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 107 of file Module.h.

◆ signature()

template<typename RESULT_TYPE, typename... T>
void Rcpp::CppFunctionN< RESULT_TYPE, T >::signature ( std::string & ,
const char *  )
inlinevirtual

Human readable function signature (demangled if possible)

Reimplemented from Rcpp::CppFunction.

Definition at line 115 of file Module.h.

Member Data Documentation

◆ ptr_fun

template<typename RESULT_TYPE, typename... T>
RESULT_TYPE(* Rcpp::CppFunctionN< RESULT_TYPE, T >::ptr_fun) (T...)
private

Definition at line 119 of file Module.h.

Referenced by get_function_ptr().


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