TMethod


class description - source file - inheritance tree

class TMethod : public TFunction

    private:
virtual void CreateSignature() public:
TMethod(G__MethodInfo* info = 0, TClass* cl = 0) TMethod(const TMethod& org) virtual ~TMethod() static TClass* Class() virtual TObject* Clone(const char* newname) const virtual TDataMember* FindDataMember() TClass* GetClass() const virtual const char* GetCommentString() const virtual TList* GetListOfMethodArgs() virtual TClass* IsA() const EMenuItemKind IsMenuItem() const TMethod& operator=(const TMethod& rhs) virtual void SetMenuItem(EMenuItemKind menuItem) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
TClass* fClass pointer to the class EMenuItemKind fMenuItem type of menuitem in context menu

Class Description

                                                                      
  Each ROOT class (see TClass) has a linked list of methods.          
  This class describes one single method (member function).           
  The method info is obtained via the CINT api. See class TCint.      
                                                                      
  The method information is used a.o. by the THml class and by the    
  TTree class.                                                        
                                                                      


TMethod(G__MethodInfo *info, TClass *cl) : TFunction(info)
 Default TMethod ctor. TMethods are constructed in TClass.
 Comment strings are pre-parsed to find out whether the method is
 a contxt-menu item.

TMethod(const TMethod& orig) : TFunction(orig)
 Copy ctor.

TObject* Clone(const char *newname) const
 Clone method.

const char* GetCommentString()
 Returns a comment string from the class declaration.

void CreateSignature()
 Using the CINT method arg information create a complete signature string.

TDataMember* FindDataMember()
 Tries to guess DataMember from comment string
 and Method's name <==(only if 1 Argument!).
 If more then one argument=> returns pointer to the last argument.
 It also sets MethodArgs' pointers to point to specified data members.

 The form of comment string defining arguments is:
 void XXX(Int_t x1, Float_t y2) //*ARGS={x1=>fX1,y2=>fY2}
 where fX1, fY2 are data fields in the same class.
 ("pointers" to data members)

TList* GetListOfMethodArgs()
 Returns methodarg list and additionally updates fDataMember in TMethod by
 calling FindDataMember();



Inline Functions


             TMethod& operator=(const TMethod& rhs)
              TClass* GetClass() const
        EMenuItemKind IsMenuItem() const
                 void SetMenuItem(EMenuItemKind menuItem)
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
                 void ~TMethod()


Author: Rene Brun 09/02/95
Last update: root/meta:$Name: $:$Id: TMethod.cxx,v 1.4 2003/06/13 16:21:21 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - 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.