41 TNamed(
const char *
name,
const char *title) : fName(name), fTitle(title) { }
56 virtual void SetNameTitle(
const char *name,
const char *title);
57 virtual void SetTitle(
const char *title=
"");
virtual const char * GetTitle() const
Returns title of object.
TNamed(const TString &name, const TString &title)
virtual ULong_t Hash() const
Return hash value for this object.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual void FillBuffer(char *&buffer)
Encode TNamed into output buffer.
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
virtual void Clear(Option_t *option="")
Set name and title to empty strings ("").
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
virtual void Copy(TObject &named) const
Copy this to obj.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual void ls(Option_t *option="") const
List TNamed name and title.
virtual Int_t Compare(const TObject *obj) const
Compare two TNamed objects.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
virtual const char * GetName() const
Returns name of object.
virtual void Print(Option_t *option="") const
Print TNamed name and title.
virtual Bool_t IsSortable() const
virtual Int_t Sizeof() const
Return size of the TNamed part of the TObject.
Mother of all ROOT objects.
TNamed(const char *name, const char *title)
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.