/usr/include/root/TRef.h is in libroot-core-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | // @(#)root/cont:$Id$
// Author: Rene Brun 28/09/2001
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TRef
#define ROOT_TRef
//////////////////////////////////////////////////////////////////////////
// //
// TRef //
// //
// Persistent Reference link to a TObject //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TObject
#include "TObject.h"
#endif
class TProcessID;
class TFile;
class TExec;
class TObjArray;
class TRef : public TObject {
protected:
TProcessID *fPID; //!Pointer to ProcessID when TRef was written
static TObjArray *fgExecs; //List of execs
static TObject *fgObject; //In: this, Out: pointer to object (used by Action on Demand)
public:
//status bits
enum { kNotComputed = BIT(12)};
TRef(): fPID(0) { }
TRef(TObject *obj);
TRef(const TRef &ref);
void operator=(TObject *obj);
TRef& operator=(const TRef &ref);
virtual ~TRef() { }
TObject *GetObject() const;
TProcessID *GetPID() const {return fPID;}
Bool_t IsValid() const {return GetUniqueID()!=0 ? kTRUE : kFALSE;}
virtual void SetAction(const char *name);
virtual void SetAction(TObject *parent);
static void SetObject(TObject *obj);
static void SetStaticObject(TObject *obj);
static Int_t AddExec(const char *name);
static TObjArray *GetListOfExecs();
static TObject *GetStaticObject();
friend Bool_t operator==(const TRef &r1, const TRef &r2);
friend Bool_t operator!=(const TRef &r1, const TRef &r2);
ClassDef(TRef,1) //Persistent Reference link to a TObject
};
#endif
|