77 if (newname && strlen(newname)) named->
SetName(newname);
87 if (
this == obj)
return 0;
116 if (opt && strstr(opt,
"noaddr")) {
The TNamed class is the base class for all named ROOT classes.
virtual void FillBuffer(char *&buffer)
Encode TNamed into output buffer.
TObject * Clone(const char *newname="") const override
Make a clone of an object using the Streamer facility.
void Copy(TObject &named) const override
Copy this to obj.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual ~TNamed()
TNamed destructor.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
void Print(Option_t *option="") const override
Print TNamed name and title.
void Clear(Option_t *option="") override
Set name and title to empty strings ("").
virtual void SetName(const char *name)
Set the name of the TNamed.
Int_t Compare(const TObject *obj) const override
Compare two TNamed objects.
TClass * IsA() const override
virtual Int_t Sizeof() const
Return size of the TNamed part of the TObject.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
void ls(Option_t *option="") const override
List TNamed name and title.
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
TObject & operator=(const TObject &rhs)
TObject assignment operator.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual void Copy(TObject &object) const
Copy this to obj.
@ kCanDelete
if object in a list can be deleted
@ kMustCleanup
if object destructor must call RecursiveRemove()
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.
virtual void FillBuffer(char *&buffer) const
Copy string into I/O buffer.
virtual Int_t Sizeof() const
Returns size string will occupy on I/O buffer.
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.