#include <Rcpp.h>
Inherited by MyRListFunc, and MyRVectorFunc.
Public Member Functions | |
RcppFunction (SEXP fn) | |
~RcppFunction () | |
SEXP | listCall () |
SEXP | vectorCall () |
void | setRVector (std::vector< double > &v) |
void | setRListSize (int size) |
void | appendToRList (std::string name, double value) |
void | appendToRList (std::string name, int value) |
void | appendToRList (std::string name, std::string value) |
void | appendToRList (std::string name, RcppDate &date) |
void | appendToRList (std::string name, RcppDatetime &datetime) |
void | clearProtectionStack () |
Private Attributes | |
SEXP | fn |
SEXP | listArg |
SEXP | vectorArg |
int | listSize |
int | currListPosn |
int | numProtected |
std::vector< std::string > | names |
Definition at line 530 of file Rcpp.h.
RcppFunction::RcppFunction | ( | SEXP | fn | ) | [inline] |
Definition at line 532 of file Rcpp.h.
References currListPosn, listArg, listSize, numProtected, and vectorArg.
RcppFunction::~RcppFunction | ( | ) | [inline] |
Definition at line 540 of file Rcpp.h.
References numProtected.
void RcppFunction::appendToRList | ( | std::string | name, | |
RcppDatetime & | datetime | |||
) |
Definition at line 980 of file Rcpp.cpp.
References currListPosn, RcppDatetime::getFractionalTimestamp(), listArg, listSize, names, and numProtected.
void RcppFunction::appendToRList | ( | std::string | name, | |
RcppDate & | date | |||
) |
Definition at line 966 of file Rcpp.cpp.
References currListPosn, RcppDate::getJDN(), RcppDate::Jan1970Offset, listArg, listSize, names, and numProtected.
void RcppFunction::appendToRList | ( | std::string | name, | |
std::string | value | |||
) |
Definition at line 956 of file Rcpp.cpp.
References currListPosn, listArg, listSize, names, and numProtected.
void RcppFunction::appendToRList | ( | std::string | name, | |
int | value | |||
) |
Definition at line 946 of file Rcpp.cpp.
References currListPosn, listArg, listSize, names, and numProtected.
void RcppFunction::appendToRList | ( | std::string | name, | |
double | value | |||
) |
Definition at line 936 of file Rcpp.cpp.
References currListPosn, listArg, listSize, names, and numProtected.
Referenced by MyRListFunc::addOne().
void RcppFunction::clearProtectionStack | ( | ) | [inline] |
Definition at line 552 of file Rcpp.h.
References numProtected.
Referenced by MyRListFunc::addOne(), and MyRVectorFunc::getSum().
SEXP RcppFunction::listCall | ( | ) |
Definition at line 891 of file Rcpp.cpp.
References currListPosn, fn, listArg, listSize, names, and numProtected.
Referenced by MyRListFunc::addOne().
void RcppFunction::setRListSize | ( | int | size | ) |
Definition at line 930 of file Rcpp.cpp.
References listArg, listSize, and numProtected.
Referenced by MyRListFunc::addOne().
void RcppFunction::setRVector | ( | std::vector< double > & | v | ) |
Definition at line 923 of file Rcpp.cpp.
References numProtected, and vectorArg.
Referenced by MyRVectorFunc::getSum().
SEXP RcppFunction::vectorCall | ( | ) |
Definition at line 911 of file Rcpp.cpp.
References fn, numProtected, and vectorArg.
Referenced by MyRVectorFunc::getSum().
int RcppFunction::currListPosn [private] |
Definition at line 559 of file Rcpp.h.
Referenced by appendToRList(), listCall(), and RcppFunction().
SEXP RcppFunction::fn [private] |
Definition at line 558 of file Rcpp.h.
Referenced by listCall(), and vectorCall().
SEXP RcppFunction::listArg [private] |
Definition at line 558 of file Rcpp.h.
Referenced by appendToRList(), listCall(), RcppFunction(), and setRListSize().
int RcppFunction::listSize [private] |
Definition at line 559 of file Rcpp.h.
Referenced by appendToRList(), listCall(), RcppFunction(), and setRListSize().
std::vector<std::string> RcppFunction::names [private] |
Definition at line 560 of file Rcpp.h.
Referenced by appendToRList(), and listCall().
int RcppFunction::numProtected [private] |
Definition at line 559 of file Rcpp.h.
Referenced by appendToRList(), clearProtectionStack(), listCall(), RcppFunction(), setRListSize(), setRVector(), vectorCall(), and ~RcppFunction().
SEXP RcppFunction::vectorArg [private] |
Definition at line 558 of file Rcpp.h.
Referenced by RcppFunction(), setRVector(), and vectorCall().