11 #ifndef ROOT_R_TRObject 12 #define ROOT_R_TRObject 72 friend SEXP Rcpp::wrap<TRObject>(
const TRObject &
f);
119 fObj.attr(name.
Data()) = obj;
130 return fObj.attr(name.
Data());
159 Error(
"Cast Operator",
"Can not make the requested data, returning an unknow value");
166 return ::Rcpp::as<T>(obj);
174 operator SEXP()
const 179 operator Rcpp::RObject()
184 template <
class T>
operator T()
191 Error(
"Cast Operator",
"Can not make the requested data, returning an unknow value");
Namespace for new ROOT classes and functions.
#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...
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.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
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...
const char * Data() const