21#ifndef Rcpp_Language_h
22#define Rcpp_Language_h
85 Storage::set__(
Rf_lang1( function ) );
105 #if defined(HAS_VARIADIC_TEMPLATES)
106 template <
typename... T>
111 template <
typename... T>
113 Storage::set__(
pairlist(function, t...));
116 #include <Rcpp/generated/Language__ctors.h>
130 SEXP x = Storage::get__();
139 SEXP x = Storage::get__();
176 template <
typename RESULT_TYPE=SEXP>
192 template <
typename T,
typename RESULT_TYPE = SEXP>
193#if __cplusplus < 201103L
194 class unary_call :
public std::unary_function<T,RESULT_TYPE> {
196 class unary_call :
public std::function<RESULT_TYPE(T)> {
213 template <
typename T1,
typename T2,
typename RESULT_TYPE = SEXP>
214#if __cplusplus < 201103L
215 class binary_call :
public std::binary_function<T1,T2,RESULT_TYPE> {
217 class binary_call :
public std::function<RESULT_TYPE(T1,T2)> {
221 binary_call(
Language call_, R_xlen_t index1, R_xlen_t index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){}
227 return as<RESULT_TYPE>( call.eval() );
binary_call(Function fun)
binary_call(Language call_)
binary_call(Language call_, R_xlen_t index1, R_xlen_t index2)
RESULT_TYPE operator()(const T1 &o1, const T2 &o2)
fixed_call(Language call_)
RESULT_TYPE operator()(const T &object)
unary_call(Language call_, R_xlen_t index)
unary_call(Language call_)
#define RCPP_GENERATE_CTOR_ASSIGN(__CLASS__)
#define RCPP_API_CLASS(__CLASS__)
SEXP Rcpp_eval_impl(SEXP expr, SEXP env)
Function_Impl< PreserveStorage > Function
DottedPairProxyPolicy< Language_Impl >::const_DottedPairProxy const_Proxy
SEXP Rcpp_fast_eval(SEXP expr, SEXP env)
void setFunction(const Function &function)
void setSymbol(const std::string &symbol)
Language_Impl< PreserveStorage > Language
Symbol_Impl< NoProtectStorage > Symbol