Logo ROOT  
Reference Guide
TRObject.cxx
Go to the documentation of this file.
1// Author: Omar Zapata Omar.Zapata@cern.ch 2014
2
3/*************************************************************************
4 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10#include<TRObject.h>
11#include<vector>
12
13using namespace ROOT::R;
15
16//______________________________________________________________________________
17TRObject::TRObject(SEXP robj): TObject(), fObj(robj), fStatus(kTRUE) { }
18
19
20//______________________________________________________________________________
21void TRObject::operator=(SEXP robj)
22{
23 fStatus = kTRUE;
24 fObj = robj;
25}
26
27//______________________________________________________________________________
28TRObject::TRObject(SEXP robj, Bool_t status): fObj(robj), fStatus(status) {}
bool Bool_t
Definition: RtypesCore.h:63
const Bool_t kTRUE
Definition: RtypesCore.h:100
#define ClassImp(name)
Definition: Rtypes.h:364
This is a class to get ROOT's objects from R's objects.
Definition: TRObject.h:70
Rcpp::RObject fObj
Definition: TRObject.h:73
void operator=(SEXP xx)
Definition: TRObject.cxx:21
TRObject()
Default constructor.
Definition: TRObject.h:79
Bool_t fStatus
Definition: TRObject.h:74
Mother of all ROOT objects.
Definition: TObject.h:37
namespace associated R package for ROOT.
Definition: RExports.h:53