12 #ifndef ROOT_R_RExports
13 #define ROOT_R_RExports
54 #pragma GCC diagnostic ignored "-Wunknown-pragmas"
55 #pragma GCC diagnostic ignored "-Wshadow"
56 #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
57 #pragma GCC diagnostic ignored "-Wunused-parameter"
58 #pragma GCC diagnostic ignored "-Woverloaded-virtual"
59 #pragma GCC diagnostic ignored "-Wextra"
60 #pragma GCC diagnostic ignored "-Wignored-qualifiers"
68 #include<RcppCommon.h>
87 return TString(::Rcpp::as<std::string>(s).c_str());
115 template<
class T,
size_t i> std::array<T, i>
as(SEXP &
obj)
117 std::vector<T>
v = Rcpp::as<std::vector<T> >(
obj);
119 std::copy(v.begin(), v.end(), a.begin());
124 template <
typename T,
size_t i>
125 class Exporter<
std::array<T, i> > {
129 t = Rcpp::as<T, i>(
x);
131 std::array<T, i>
get()
141 #if !defined(R_Version)
142 #define R_Version(v,p,s) ((v * 65536) + (p * 256) + (s))
145 #include<Rcpp/Named.h>
146 #undef HAVE_UINTPTR_T
153 template<
class T>
class class_:
public Rcpp::class_<T> {
159 template<
class T>
void function(
const char *name_,
T fun,
const char *docstring = 0)
165 extern Rcpp::internal::NamedPlaceHolder
Label;
171 #define ROOTR_MODULE RCPP_MODULE
172 #define ROOTR_EXPOSED_CLASS RCPP_EXPOSED_CLASS
175 #define ROOTR_EXPOSED_CLASS_INTERNAL(CLASS)\
180 RCPP_EXPOSED_CLASS_NODECL(ROOT::R::CLASS)
185 #define LOAD_ROOTR_MODULE(NAME) Rf_eval( Rf_lang2( ( ROOT::R::ModuleSymRef == NULL ? ROOT::R::ModuleSymRef = Rf_install("Module") : ROOT::R::ModuleSymRef ), _rcpp_module_boot_##NAME() ), R_GlobalEnv )
Namespace for new ROOT classes and functions.
const char * Data() const
VARIABLE_IS_NOT_USED SEXP ModuleSymRef
class_(const char *name_, const char *doc=0)
SEXP wrap(const TString &s)
This is a class to get ROOT's objects from R's objects
void function(const char *name_, T fun, const char *docstring=0)
This is a class to pass functions from ROOT to R.
std::vector< TString > TVectorString
This is a class to support deprecated method to pass function to R's Environment, based in Rcpp::Inte...
Rcpp::internal::NamedPlaceHolder Label
This is a class to pass functions from ROOT to R
This is a class to create DataFrames from ROOT to R