11 #ifndef ROOT_R_TRObject
12 #define ROOT_R_TRObject
14 #ifndef ROOT_R_RExports
74 friend SEXP Rcpp::wrap<TRObject>(
const TRObject &
f);
121 fObj.attr(name.
Data()) = obj;
132 return fObj.attr(name.
Data());
158 T data =::Rcpp::as<T>(
fObj);
161 Error(
"Cast Operator",
"Can not make the requested data, returning an unknow value");
168 return ::Rcpp::as<T>(
obj);
176 operator SEXP()
const
181 operator Rcpp::RObject()
186 template <
class T>
operator T()
190 T data =::Rcpp::as<T>(
fObj);
193 Error(
"Cast Operator",
"Can not make the requested data, returning an unknow value");
Namespace for new ROOT classes and functions.
const char * Data() const
#define ClassDef(name, id)
TRObject GetAttribute(const TString name)
The R objects can to have associate attributes with this method you can added attribute to TRObject g...
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
SEXP wrap(const TString &s)
T As()
Some datatypes of ROOT or c++ can be wrapped in to a TRObject, this method lets you unwrap those data...
TRObject & Wrap(T obj)
Some datatypes of ROOT or c++ can be wrapped in to a TRObject, this method lets you wrap those dataty...
This is a class to get ROOT's objects from R's objects
T operator=(TRObject &obj)
TRObject()
Default constructor.
void SetStatus(Bool_t status)
TRObject is a current valid object?
Mother of all ROOT objects.
Bool_t GetStatus()
TRObject is a current valid object?
void SetAttribute(const TString name, T obj)
The R objects can to have associate attributes with this method you can added attribute to TRObject g...