TMethod


class description - source file - inheritance tree

class TMethod : public TFunction

    private:
virtual void CreateSignature() public:
TMethod TMethod(G__MethodInfo* info = 0, TClass* cl = 0) TMethod TMethod(const TMethod&) virtual void ~TMethod() static TClass* Class() virtual TDataMember* FindDataMember() TClass* GetClass() const virtual const char* GetCommentString() const virtual TList* GetListOfMethodArgs() virtual TClass* IsA() const EMenuItemKind IsMenuItem() const 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.

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


              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)
              TMethod TMethod(const TMethod&)
                 void ~TMethod()


Author: Rene Brun 09/02/95
Last update: root/meta:$Name: $:$Id: TMethod.cxx,v 1.2 2001/10/29 16:23:54 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.