TNamed
class description - source file - inheritance tree (.pdf)
    public:
                          TNamed()
                          TNamed(const char* name, const char* title)
                          TNamed(const TString& name, const TString& title)
                          TNamed(const TNamed& named)
                  virtual ~TNamed()
           static TClass* Class()
             virtual void Clear(Option_t* option = "")
         virtual TObject* Clone(const char* newname = "") const
            virtual Int_t Compare(const TObject* obj) const
             virtual void Copy(TObject& named) const
             virtual void FillBuffer(char*& buffer)
      virtual const char* GetName() const
      virtual const char* GetTitle() const
          virtual ULong_t Hash() const
          virtual TClass* IsA() const
           virtual Bool_t IsSortable() const
             virtual void ls(Option_t* option = "") const
                  TNamed& operator=(const TNamed& rhs)
             virtual void Print(Option_t* option = "") const
             virtual void SetName(const char* name)
             virtual void SetNameTitle(const char* name, const char* title)
             virtual void SetTitle(const char* title = "")
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
            virtual Int_t Sizeof() const
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
    protected:
      TString fName   object identifier
      TString fTitle  object title
                                                                      
 TNamed                                                               
                                                                      
 The TNamed class is the base class for all named ROOT classes        
 A TNamed contains the essential elements (name, title)               
 to identify a derived object in containers, directories and files.   
 Most member functions defined in this base class are in general      
 overridden by the derived classes.                                   
                                                                      
 TNamed(const TNamed &named) : TObject(named),fName(named.fName),fTitle(named.fTitle)
 TNamed copy ctor.
void Clear(Option_t *)
 Set name and title to empty strings ("").
TObject* Clone(const char *newname) const
 Make a clone of an object using the Streamer facility.
 If newname is specified, this will be the name of the new object.
Int_t Compare(const TObject *obj) const
 Compare two TNamed objects. Returns 0 when equal, -1 when this is
 smaller and +1 when bigger (like strcmp).
void Copy(TObject &obj) const
 Copy this to obj.
void FillBuffer(char *&buffer)
 Encode TNamed into output buffer.
void ls(Option_t *) const
 List TNamed name and title.
void Print(Option_t *) const
 Print TNamed name and title.
void SetName(const char *name)
 Change (i.e. set) the name of the TNamed.
 WARNING: if the object is a member of a THashTable or THashList container
 the container must be Rehash()'ed after SetName(). For example the list
 of objects in the current directory is a THashList.
void SetNameTitle(const char *name, const char *title)
 Change (i.e. set) all the TNamed parameters (name and title).
 WARNING: if the name is changed and the object is a member of a
 THashTable or THashList container the container must be Rehash()'ed
 after SetName(). For example the list of objects in the current
 directory is a THashList.
void SetTitle(const char *title)
 Change (i.e. set) the title of the TNamed.
Int_t Sizeof() const
 Return size of the TNamed part of the TObject.
Inline Functions
               void ~TNamed()
             TNamed TNamed(const char* name, const char* title)
             TNamed TNamed(const TString& name, const TString& title)
             TNamed TNamed(const TNamed& named)
            TNamed& operator=(const TNamed& rhs)
        const char* GetName() const
        const char* GetTitle() const
            ULong_t Hash() const
             Bool_t IsSortable() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
Author: Rene Brun 26/12/94
Last update: root/base:$Name:  $:$Id: TNamed.cxx,v 1.16 2004/09/20 19:34:14 brun Exp $
Copyright  (C) 1995-2000, Rene Brun and Fons Rademakers.               *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.